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/PropertyInfo
Christian Flothmann de8ddfdfba bug #39896 [PropertyInfo] Fix breaking change with has*(arguments...) methods (YaFou)
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
-------

37cc16e3d8 [PropertyInfo] Fix breaking change with has*(arguments...) methods
2021-01-22 18:02:52 +01:00
..
DependencyInjection [PropertyInfo] fix BC break in PropertyInfoPass 2018-09-05 11:02:25 +02:00
Extractor [PropertyInfo] Fix breaking change with has*(arguments...) methods 2021-01-20 22:15:48 +01:00
Tests [PropertyInfo] Fix breaking change with has*(arguments...) methods 2021-01-20 22:15:48 +01:00
Util Use short array deconstruction syntax. 2020-10-28 21:42:29 +01:00
.gitattributes add missing gitattributes for phpunit-bridge 2020-03-27 17:54:36 +01:00
.gitignore Add gitignore file for Symfony 3.4 2019-09-17 11:52:54 +02:00
CHANGELOG.md Fix CS in Changelogs 2020-12-10 18:56:13 +01:00
composer.json Merge branch '4.4' into 5.1 2021-01-14 16:25:38 +01:00
LICENSE Bump license year 2021-01-01 10:24:35 +01:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
PropertyAccessExtractorInterface.php Remove superfluous phpdoc tags 2019-08-14 13:59:53 +02:00
PropertyDescriptionExtractorInterface.php Remove superfluous phpdoc tags 2019-08-14 13:59:53 +02:00
PropertyInfoCacheExtractor.php Merge branch '4.4' 2019-08-20 18:53:57 +02:00
PropertyInfoExtractor.php Merge branch '4.4' 2019-08-20 18:53:57 +02:00
PropertyInfoExtractorInterface.php
PropertyInitializableExtractorInterface.php fixed CS 2019-01-16 21:35:37 +01:00
PropertyListExtractorInterface.php Remove superfluous phpdoc tags 2019-08-14 13:59:53 +02:00
PropertyReadInfo.php Rebase, fix tests, review & update CHANGELOG 2020-01-28 10:54:57 +01:00
PropertyReadInfoExtractorInterface.php Rebase, fix tests, review & update CHANGELOG 2020-01-28 10:54:57 +01:00
PropertyTypeExtractorInterface.php Remove superfluous phpdoc tags 2019-08-14 13:59:53 +02:00
PropertyWriteInfo.php Add missing dots at the end of exception messages 2020-03-15 15:54:58 +01:00
PropertyWriteInfoExtractorInterface.php Rebase, fix tests, review & update CHANGELOG 2020-01-28 10:54:57 +01:00
README.md Improve composer.json descriptions 2021-01-10 17:25:35 +01:00
Type.php Apply "visibility_required" CS rule to constants 2020-12-08 17:59:59 +01:00

PropertyInfo Component

The PropertyInfo component extracts information about PHP class' properties using metadata of popular sources.

Resources