Add PHPStan return-type extensions, tighten typing, fix dot-notation edge cases, and update docs/tests#177
Add PHPStan return-type extensions, tighten typing, fix dot-notation edge cases, and update docs/tests#177voku wants to merge 3 commits into
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
Warning Review limit reached
Next review available in: 32 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (33)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Tick the box to add this pull request to the merge queue (same as
|
Apply fixes from StyleCI
|



Motivation
Arrayysubclasses and provide precisemeta()types for better static analysis.Description
Arrayy\PHPStan\DefaultDotNotationTypeInterface, aGetDynamicMethodReturnTypeExtensionto inferget()return types for literal dotted paths, and registered both extensions inphpstan.neonand a test fixtures neon; updated README and built docs to describe registration and usage with examples.src/Arrayy.php, including saferoffsetExistshandling,internalRemovehandling for float keys and dot-path traversal,callAtPathandextractValueguards for non-array/non-object intermediates, and a number of typed-annotation/@phpstan-ignore-next-lineadjustments to satisfy static analysis.Jsonmapper to accept traversables and improved its phpdoc/typing; small fixes in collection creation and other helpers (e.g.Create.php,AbstractCollection.php) to silence template/type complaints.tests/PHPStan/*) to validate static-analysis behaviour, plus assorted test annotations and phpstan ignore comments to keep CI green; updatedREADME.mdand generated docs to explain the new PHPStan features and required service registration.Testing
vendor/bin/phpunitagainst the repository and the modified tests, which completed successfully.vendor/bin/phpstan analyse --configuration=tests/PHPStan/phpstan-fixtures.neonto validate the new return-type extensions, which completed successfully.Codex Task
This change is