We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6e92a commit 3fb2048Copy full SHA for 3fb2048
1 file changed
src/Utils/Validators.php
@@ -355,6 +355,6 @@ public static function isType(string $type): bool
355
*/
356
public static function isPhpIdentifier(string $value): bool
357
{
358
- return is_string($value) && preg_match('#^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$#D', $value);
+ return preg_match('#^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$#D', $value) === 1;
359
}
360
0 commit comments