Fix documentation contradictions and add missing SchemaException helper methods #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Documentation audit revealed incorrect parameter names, references to non-existent methods, and improper API usage patterns.
Changes
Documentation Fixes
version:toschemaVersion:parameter infromClass(),fromEnum(), andfromClosure()examplesgetFailedValue()method, updated examples to use actual APIadditionalProperties()usage in union.mdx - moved from insideproperties()to method chainCode Additions
Added missing helper methods to
SchemaException:These methods extract the first failed property from the existing
getErrors()array, making error handling more ergonomic without changing validation behavior.Files Modified
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/Jean85/pretty-package-versions/zipball/4d7aa5dab42e2a76d99559706022885de0e18e1a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/doctrine/deprecations/zipball/459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/opis/json-schema/zipball/8458763e0dd0b6baa310e04f1829fc73da4e8c8a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/opis/string/zipball/3e4d2aaff518ac518530b89bb26ed40f4503635e/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/opis/uri/zipball/0f3ca49ab1a5e4a6681c286e0b2cc081b93a7d5a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/pestphp/pest-plugin-arch/zipball/25bb17e37920ccc35cbbcda3b00d596aadf3e58d/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/pestphp/pest-plugin/zipball/9d4b93d7f73d3f9c3189bb22c220fef271cdf568/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/90614c73d3800e187615e2dd236ad0e2a01bf761/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/92a98ada2b93d9b201a613cb5a33584dde25f195/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/phpstan/phpdoc-parser/zipball/1e0cd5370df5dd2e556a36b9c62f62e555870495/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/environment/zipball/24a711b5c916efc6d6e62aa65aa2ec98fef77f68/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/exporter/zipball/016951ae10980765e4e7aee491eb288c64e505b7/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/global-state/zipball/ef1377171613d09edd25b7816f05be8313f9115d/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/type/zipball/e549163b9760b8f71f191651d22acf32d56d6d4d/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/version/zipball/3e6ccf7657d4f0a59200564b08cead899313b53c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/process/zipball/7ca8dc2d0dcf4882658313aba8be5d9fd01026c8/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/ta-tikoma/phpunit-architecture-test/zipball/cf6fb197b676ba716837c886baca842e4db29005/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/theofidry/cpu-core-counter/zipball/db9508f7b1474469d9d3c53b86f817e344732678/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/webmozarts/assert/zipball/9be6926d8b485f55b9229203f962b51ed377ba68/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/64Vopq /usr/bin/composer install --no-interaction(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.