This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/PropertyAccess
Fabien Potencier 2c4c19ce8b bug #36073 [PropertyAccess][DX] Improved errors when reading uninitialized properties (HeahDude)
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
-------

a71023ba65 [PropertyAccess] Improved errors when reading uninitialized properties
2020-03-16 16:16:37 +01:00
..
Exception Merge branch '2.8' into 3.4 2018-07-26 10:45:46 +02:00
Tests [PropertyAccess] Improved errors when reading uninitialized properties 2020-03-15 14:27:18 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md document deprecation of the StringUtil class 2017-05-21 12:07:34 +02:00
composer.json Merge branch '2.7' into 2.8 2018-05-01 15:52:40 -07:00
LICENSE Update year in license files 2020-01-01 12:03:25 +01:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
PropertyAccess.php [2.7][DX] Use constant message contextualisation for deprecations 2017-12-20 15:36:51 +01:00
PropertyAccessor.php bug #36073 [PropertyAccess][DX] Improved errors when reading uninitialized properties (HeahDude) 2020-03-16 16:16:37 +01:00
PropertyAccessorBuilder.php Remove superfluous phpdoc tags 2019-08-14 13:59:53 +02:00
PropertyAccessorInterface.php Add a missing quote in getValue() DocBlock 2019-06-05 17:56:22 +02:00
PropertyPath.php Fix quotes in exception messages 2020-03-16 09:31:04 +01:00
PropertyPathBuilder.php Fix quotes in exception messages 2020-03-16 09:31:04 +01:00
PropertyPathInterface.php [Form] fix return type declarations 2019-08-26 09:52:58 +02:00
PropertyPathIterator.php [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
PropertyPathIteratorInterface.php fixed types in phpdocs 2014-04-16 12:30:19 +02:00
README.md Update links to documentation 2020-01-04 13:05:51 +01:00
StringUtil.php Enable the fixer enforcing fully-qualified calls for compiler-optimized functions 2018-07-24 12:05:38 +02:00

PropertyAccess Component

The PropertyAccess component provides function to read and write from/to an object or array using a simple string notation.

Resources