Skip to content

Commit b969ab5

Browse files
committed
cs
1 parent 63f824c commit b969ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application/UI/ComponentReflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public static function convertType(&$val, string $types): bool
216216
*/
217217
private static function convertSingleType(&$val, string $type): bool
218218
{
219-
static $builtin = [
219+
$builtin = [
220220
'string' => 1, 'int' => 1, 'float' => 1, 'bool' => 1, 'array' => 1, 'object' => 1,
221221
'callable' => 1, 'iterable' => 1, 'void' => 1, 'null' => 1, 'mixed' => 1,
222222
'boolean' => 1, 'integer' => 1, 'double' => 1, 'scalar' => 1,
@@ -272,7 +272,7 @@ public static function parseAnnotation(\Reflector $ref, string $name): ?array
272272
return null;
273273
}
274274

275-
static $tokens = ['true' => true, 'false' => false, 'null' => null];
275+
$tokens = ['true' => true, 'false' => false, 'null' => null];
276276
$res = [];
277277
foreach ($m[1] as $s) {
278278
foreach (preg_split('#\s*,\s*#', $s, -1, PREG_SPLIT_NO_EMPTY) ?: ['true'] as $item) {

0 commit comments

Comments
 (0)