php-src/ext/tokenizer/tokenizer.stub.php
Máté Kocsis 40e8c7c90b
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.
2020-09-19 12:32:02 +02:00

24 lines
609 B
PHP

<?php
/** @generate-function-entries */
function token_get_all(string $source, int $flags = 0): array {}
function token_name(int $token): string {}
class PhpToken implements Stringable
{
/** @return static[] */
public static function getAll(string $code, int $flags = 0): array {}
final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) {}
/** @param int|string|array $kind */
public function is($kind): bool {}
public function isIgnorable(): bool {}
public function getTokenName(): ?string {}
public function __toString(): string {}
}