2c4c19ce8b
This PR was merged into the 3.4 branch.
Discussion
----------
[PropertyAccess][DX] Improved errors when reading uninitialized properties
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | kinda
| New feature? | no
| Deprecations? | no
| Tickets | Fix #36051
| License | MIT
| Doc PR | ~
An attempt to fix #36051 by providing better error messages when trying to read uninitialized properties either via calling a return-type-hinted method from PHP 7.0 or by accessing public-typed properties from PHP 7.4.
It would be nice to have a proper exception class in master.
Commits
-------
|
||
---|---|---|
.. | ||
Exception | ||
Tests | ||
.gitignore | ||
CHANGELOG.md | ||
composer.json | ||
LICENSE | ||
phpunit.xml.dist | ||
PropertyAccess.php | ||
PropertyAccessor.php | ||
PropertyAccessorBuilder.php | ||
PropertyAccessorInterface.php | ||
PropertyPath.php | ||
PropertyPathBuilder.php | ||
PropertyPathInterface.php | ||
PropertyPathIterator.php | ||
PropertyPathIteratorInterface.php | ||
README.md | ||
StringUtil.php |
PropertyAccess Component
The PropertyAccess component provides function to read and write from/to an object or array using a simple string notation.