diff options
| author | Dirk Weise | 2020-11-18 10:28:20 +0100 |
|---|---|---|
| committer | GitHub | 2020-11-18 09:28:20 +0000 |
| commit | 3c3048032fb0a79d04765d2b4f064f012208ced8 (patch) | |
| tree | e14c0e370f08ed7cbff900c31eb4d032b2f70930 | |
| parent | f6a0a387aa2323835069046749209b64b2dd5883 (diff) | |
Replace broken magic number with constant
PHP's parser token constants are dynamically generated,
values can change from version to version.
See: https://www.php.net/manual/en/tokens.php
| -rw-r--r-- | scripts/generate_rules.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate_rules.php b/scripts/generate_rules.php index 68936ad..b988789 100644 --- a/scripts/generate_rules.php +++ b/scripts/generate_rules.php | |||
| @@ -41,7 +41,7 @@ foreach($objects as $name => $object){ | |||
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | foreach(token_get_all($file_content) as $token) { | 43 | foreach(token_get_all($file_content) as $token) { |
| 44 | if ($token[0] != 319) { | 44 | if ($token[0] !== T_STRING) { |
| 45 | continue; | 45 | continue; |
| 46 | } | 46 | } |
| 47 | 47 | ||
