Skip to content

Commit

Permalink
Merge pull request #959 from aurimasniekis/5.0.x
Browse files Browse the repository at this point in the history
Added `false` to types considered by `ReflectionNamedType#isBuiltIn()` logic
  • Loading branch information
Ocramius authored Jan 8, 2022
2 parents 234275b + 0f76eb1 commit 97b524f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Reflection/ReflectionNamedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ReflectionNamedType extends ReflectionType
'static' => null,
'null' => null,
'never' => null,
'false' => null,
];

private string $name;
Expand Down
1 change: 1 addition & 0 deletions test/unit/Reflection/ReflectionNamedTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function isBuildinProvider(): Generator
yield ['iterable'];
yield ['mixed'];
yield ['never'];
yield ['false'];
}

/**
Expand Down

0 comments on commit 97b524f

Please sign in to comment.