1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Merge pull request #6591 from vaceletm/fix-6588-reflection

ReflectionClass::getReflectionConstants has a filter parameter
This commit is contained in:
orklah 2021-10-05 20:51:17 +02:00 committed by GitHub
commit e04673259c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -11314,7 +11314,7 @@ return [
'ReflectionClass::getProperties' => ['list<ReflectionProperty>', 'filter='=>'int'],
'ReflectionClass::getProperty' => ['ReflectionProperty', 'name'=>'string'],
'ReflectionClass::getReflectionConstant' => ['ReflectionClassConstant|false', 'name'=>'string'],
'ReflectionClass::getReflectionConstants' => ['list<ReflectionClassConstant>'],
'ReflectionClass::getReflectionConstants' => ['list<ReflectionClassConstant>', 'filter='=>'?int'],
'ReflectionClass::getShortName' => ['string'],
'ReflectionClass::getStartLine' => ['int|false'],
'ReflectionClass::getStaticProperties' => ['array<string, ReflectionProperty>'],

View File

@ -97,6 +97,10 @@ return [
'old' => ['array<string,mixed>'],
'new' => ['array<string,mixed>', 'filter='=>'?int'],
],
'ReflectionClass::getReflectionConstants' => [
'old' => ['list<ReflectionClassConstant>'],
'new' => ['list<ReflectionClassConstant>', 'filter='=>'?int'],
],
'XMLWriter::flush' => [
'old' => ['string|int|false', 'empty='=>'bool'],
'new' => ['string|int', 'empty='=>'bool'],