[Scoper] Exclude Attribute polyfill class from class_alias (take 1) (#1747)

* [Scoper] Exclude Attribute polyfill class from class_alias

* phpstan
This commit is contained in:
Abdul Malik Ikhsan 2022-01-31 20:57:58 +07:00 committed by GitHub
parent e44222bd5c
commit 5b23064299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -615,3 +615,8 @@ parameters:
# mapper re-use
- '#Parameter \#1 \$type of method Rector\\PHPStanStaticTypeMapper\\TypeMapper\\ObjectWithoutClassTypeMapper\:\:mapToPhpParserNode\(\) expects PHPStan\\Type\\ObjectWithoutClassType, PHPStan\\Type\\Accessory\\Has(Property|Method)Type given#'
# due to new https://github.com/symplify/symplify/pull/3912 NoMixedPropertyFetcherRule
- '#Anonymous variables in a property fetch can lead to false dead property\. Make sure the variable type is known#'
# due to new https://github.com/symplify/symplify/pull/3913 NoMixedMethodCallerRule
- '#Anonymous variables in a method call can lead to false dead methods\. Make sure the variable type is known#'

View File

@ -46,6 +46,7 @@ const UNPREFIX_CLASSES_BY_FILE = [
'Symplify\ComposerJsonManipulator\ValueObject\ComposerJson',
],
'packages/Testing/PHPUnit/AbstractTestCase.php' => ['PHPUnit\Framework\TestCase'],
'vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php' => ['Attribute'],
];
// see https://github.com/humbug/php-scoper
return [