mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Adjust the order of method modifiers in stub
All the other method modifiers in stubs follow the guidelines of PSR-12, so let's use it in case of PhpToken::__construct() as well.
This commit is contained in:
parent
12306728c5
commit
40e8c7c90b
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ class PhpToken implements Stringable
|
||||||
/** @return static[] */
|
/** @return static[] */
|
||||||
public static function getAll(string $code, int $flags = 0): array {}
|
public static function getAll(string $code, int $flags = 0): array {}
|
||||||
|
|
||||||
public final function __construct(int $id, string $text, int $line = -1, int $pos = -1) {}
|
final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) {}
|
||||||
|
|
||||||
/** @param int|string|array $kind */
|
/** @param int|string|array $kind */
|
||||||
public function is($kind): bool {}
|
public function is($kind): bool {}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 4591855b4c387a2868d5287b28c5050bf828c79f */
|
* Stub hash: d8e8b4d749c2960b33fd20b27a1abf033604d4e2 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_token_get_all, 0, 1, IS_ARRAY, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_token_get_all, 0, 1, IS_ARRAY, 0)
|
||||||
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
|
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue