summaryrefslogtreecommitdiff
path: root/ext/tokenizer/tokenizer.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-04-13 16:28:55 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-04-14 11:49:02 +0200
commitc5fb4f0794c6efe06f64d6d462e14357d527b564 (patch)
treec34c643b8505356beaa091904a8e8aa9d9cd4519 /ext/tokenizer/tokenizer.stub.php
parent80598f12507c5cbde04163289e4d2575f05d2a0c (diff)
downloadphp-git-c5fb4f0794c6efe06f64d6d462e14357d527b564.tar.gz
Generate function entries from stubs for a couple of extensions
Migrates ext/standard, ext/tidy, ext/tokenizer, ext/xml, ext/xml_reader, and ext/xml_writer. Closes GH-5381.
Diffstat (limited to 'ext/tokenizer/tokenizer.stub.php')
-rw-r--r--ext/tokenizer/tokenizer.stub.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/ext/tokenizer/tokenizer.stub.php b/ext/tokenizer/tokenizer.stub.php
index 801c1c8504..19fd3411cd 100644
--- a/ext/tokenizer/tokenizer.stub.php
+++ b/ext/tokenizer/tokenizer.stub.php
@@ -1,21 +1,24 @@
<?php
+/** @generate-function-entries */
+
function token_get_all(string $source, int $flags = 0): array {}
function token_name(int $token): string {}
-class PhpToken implements Stringable {
+class PhpToken implements Stringable
+{
/** @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);
+ public final function __construct(int $id, string $text, int $line = -1, int $pos = -1) {}
/** @param int|string|array $kind */
- public function is($kind): bool;
+ public function is($kind): bool {}
- public function isIgnorable(): bool;
+ public function isIgnorable(): bool {}
- public function getTokenName(): ?string;
+ public function getTokenName(): ?string {}
- public function __toString(): string;
+ public function __toString(): string {}
}