From 40e8c7c90b1715a661f0a7056883d99198da18fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sat, 19 Sep 2020 12:31:36 +0200 Subject: [PATCH] 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. --- ext/tokenizer/tokenizer.stub.php | 2 +- 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 19fd3411cdb..72d61ad8560 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 1194f2838a4..6e313cd0de3 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)