diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-19 12:31:36 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-19 12:32:02 +0200 |
commit | 40e8c7c90b1715a661f0a7056883d99198da18fe (patch) | |
tree | a570ba46e74fa59c78a02e9f7e9005519fd659fa | |
parent | 12306728c5f37dc371bc39f5fe2bf8e928368235 (diff) | |
download | php-git-40e8c7c90b1715a661f0a7056883d99198da18fe.tar.gz |
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.
-rw-r--r-- | ext/tokenizer/tokenizer.stub.php | 2 | ||||
-rw-r--r-- | ext/tokenizer/tokenizer_arginfo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/tokenizer/tokenizer.stub.php b/ext/tokenizer/tokenizer.stub.php index 19fd3411cd..72d61ad856 100644 --- a/ext/tokenizer/tokenizer.stub.php +++ b/ext/tokenizer/tokenizer.stub.php @@ -11,7 +11,7 @@ class PhpToken implements Stringable /** @return static[] */ 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 */ public function is($kind): bool {} diff --git a/ext/tokenizer/tokenizer_arginfo.h b/ext/tokenizer/tokenizer_arginfo.h index 1194f2838a..6e313cd0de 100644 --- a/ext/tokenizer/tokenizer_arginfo.h +++ b/ext/tokenizer/tokenizer_arginfo.h @@ -1,5 +1,5 @@ /* 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_ARG_TYPE_INFO(0, source, IS_STRING, 0) |