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:
Máté Kocsis 2020-09-19 12:31:36 +02:00
parent 12306728c5
commit 40e8c7c90b
No known key found for this signature in database
GPG key ID: FD055E41728BF310
2 changed files with 2 additions and 2 deletions

View file

@ -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 {}

View file

@ -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)