Skip to content

Commit 9900d69

Browse files
Remove useless code
1 parent 564ae85 commit 9900d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Inline.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ private static function evaluateScalar(string $scalar, int $flags, array &$refer
569569
}
570570

571571
// an unquoted *
572-
if (false === $value || '' === $value) {
572+
if ('' === $value) {
573573
throw new ParseException('A reference must contain at least one character.', self::$parsedLineNumber + 1, $value, self::$parsedFilename);
574574
}
575575

@@ -594,7 +594,7 @@ private static function evaluateScalar(string $scalar, int $flags, array &$refer
594594
case '!' === $scalar[0]:
595595
switch (true) {
596596
case str_starts_with($scalar, '!!str '):
597-
$s = (string) substr($scalar, 6);
597+
$s = substr($scalar, 6);
598598

599599
if (\in_array($s[0] ?? '', ['"', "'"], true)) {
600600
$isQuotedString = true;

0 commit comments

Comments
 (0)