public static function validateReservedKeywords(string $value): void
    {
        if (in_array(mb_strtolower($value), self::getReservedWords(), true)) {
            throw new InvalidArgumentException(sprintf('The value cannot contain PHP reserved words ("%s").', $value));
        }
    }
public static function validateReservedKeywords(string $value): void
    {
        if (in_array(mb_strtolower($value), self::getReservedWords(), true)) {
            throw new InvalidArgumentException(sprintf('The value cannot contain PHP reserved words ("%s").', $value));
        }
    }
public static function validateReservedKeywords ( string $ value ) : void { if ( in_array ( mb_strtolower ( $ value ) , self :: getReservedWords ( ) , true ) ) { throw new InvalidArgumentException ( sprintf ( 'The value cannot contain PHP reserved words ("%s").' , $ value ) ) ; } }
Validates if value is one of PHP reserved keywords.

@throws \InvalidArgumentException If validation did not pass
Validates if value is one of PHP reserved keywords .