Skip to content

Commit

Permalink
Remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Aug 8, 2024
1 parent 564ae85 commit 9900d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ private static function evaluateScalar(string $scalar, int $flags, array &$refer
}

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

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

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

0 comments on commit 9900d69

Please sign in to comment.