de8ddfdfba
This PR was merged into the 5.1 branch.
Discussion
----------
[PropertyInfo] Fix breaking change with has*(arguments...) methods
| Q | A
| ------------- | ---
| Branch? | 5.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #39885
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.
Additionally (see https://symfony.com/releases):
- Always add tests and ensure they pass.
- Never break backward compatibility (see https://symfony.com/bc).
- Bug fixes must be submitted against the lowest maintained branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too.)
- Features and deprecations must be submitted against branch 5.x.
-->
Until 5.0:
```php
class Dummy
{
private $elements;
public function hasElement($element): bool
{
// ...
}
}
$extractor = new ReflectionExtractor();
$extractor->isReadable('Dummy', 'element'); // false
```
After 5.0:
```php
class Dummy
{
private $elements;
public function hasElement($element): bool
{
// ...
}
}
$extractor = new ReflectionExtractor();
$extractor->isReadable('Dummy', 'element'); // true => BREAKING CHANGE
```
Commits
-------
|
||
---|---|---|
.. | ||
DependencyInjection | ||
Extractor | ||
Tests | ||
Util | ||
.gitattributes | ||
.gitignore | ||
CHANGELOG.md | ||
composer.json | ||
LICENSE | ||
phpunit.xml.dist | ||
PropertyAccessExtractorInterface.php | ||
PropertyDescriptionExtractorInterface.php | ||
PropertyInfoCacheExtractor.php | ||
PropertyInfoExtractor.php | ||
PropertyInfoExtractorInterface.php | ||
PropertyInitializableExtractorInterface.php | ||
PropertyListExtractorInterface.php | ||
PropertyReadInfo.php | ||
PropertyReadInfoExtractorInterface.php | ||
PropertyTypeExtractorInterface.php | ||
PropertyWriteInfo.php | ||
PropertyWriteInfoExtractorInterface.php | ||
README.md | ||
Type.php |
PropertyInfo Component
The PropertyInfo component extracts information about PHP class' properties using metadata of popular sources.