Skip to content

Commit 40e8c7c

Browse files
committed
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.
1 parent 1230672 commit 40e8c7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/tokenizer/tokenizer.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PhpToken implements Stringable
1111
/** @return static[] */
1212
public static function getAll(string $code, int $flags = 0): array {}
1313

14-
public final function __construct(int $id, string $text, int $line = -1, int $pos = -1) {}
14+
final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) {}
1515

1616
/** @param int|string|array $kind */
1717
public function is($kind): bool {}

ext/tokenizer/tokenizer_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4591855b4c387a2868d5287b28c5050bf828c79f */
2+
* Stub hash: d8e8b4d749c2960b33fd20b27a1abf033604d4e2 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_token_get_all, 0, 1, IS_ARRAY, 0)
55
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)

0 commit comments

Comments
 (0)