Skip to content

Commit

Permalink
ReflectionFunction::isDisabled() always returns false
Browse files Browse the repository at this point in the history
Update the stub and arginfo accordingly
  • Loading branch information
DanielEScherzer committed Dec 6, 2024
1 parent fc48fd8 commit 43b10a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/reflection/php_reflection.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function isAnonymous(): bool {}
* @tentative-return-type
*/
#[\Deprecated(since: '8.0', message: "as ReflectionFunction can no longer be constructed for disabled functions")]
public function isDisabled(): bool {}
public function isDisabled(): false {}

/** @tentative-return-type */
public function invoke(mixed ...$args): mixed {}
Expand Down
5 changes: 3 additions & 2 deletions ext/reflection/php_reflection_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 43b10a3

Please sign in to comment.