Skip to content

Commit

Permalink
Declare the missing ReflectionMethod::$name property
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Feb 3, 2024
1 parent e8c65d7 commit b0e83aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions ext/reflection/php_reflection.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class ReflectionMethod extends ReflectionFunctionAbstract
/** @cvalue ZEND_ACC_FINAL */
public const int IS_FINAL = UNKNOWN;

public string $name;

This comment has been minimized.

Copy link
@iluuu1994

iluuu1994 Feb 4, 2024

Member

This is inherited from ReflectionFunctionAbstract, any particular reason to redeclare it?

This comment has been minimized.

Copy link
@kocsismate

kocsismate Feb 4, 2024

Author Member

Yeah, I see.. I swear I checked all the reflection properties, but still I didn't manage to find ReflectionFunctionAbstract::$name. -.- Sorry, and thanks for the reminder!

public string $class;

public function __construct(object|string $objectOrMethod, ?string $method = null) {}
Expand Down
8 changes: 7 additions & 1 deletion 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 b0e83aa

Please sign in to comment.