Skip to content

Commit

Permalink
bug #48615 Fix getting the name of closures on PHP 8.1.11+ (nicolas-g…
Browse files Browse the repository at this point in the history
…rekas)

This PR was merged into the 5.4 branch.

Discussion
----------

Fix getting the name of closures on PHP 8.1.11+

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Leverages php/php-src#9299

Commits
-------

bccd23d4df Fix getting the name of closures on PHP 8.1.11+
  • Loading branch information
nicolas-grekas committed Dec 13, 2022
2 parents 7305720 + 8efe591 commit b900446
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Internal/TentativeTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ class TentativeTypes
'isVariadic' => 'bool',
'isStatic' => 'bool',
'getClosureThis' => '?object',
'getClosureCalledClass' => '?ReflectionClass',
'getClosureScopeClass' => '?ReflectionClass',
'getDocComment' => 'string|false',
'getEndLine' => 'int|false',
Expand Down

0 comments on commit b900446

Please sign in to comment.