Skip to content

Commit 3181afc

Browse files
committed
CS: Apply ternary_to_null_coalescing fixer
1 parent bbce94f commit 3181afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ private function parseValue(string $value, int $flags, string $context)
724724
}
725725

726726
if (\in_array($value[0], ['!', '|', '>'], true) && self::preg_match('/^(?:'.self::TAG_PATTERN.' +)?'.self::BLOCK_SCALAR_HEADER_PATTERN.'$/', $value, $matches)) {
727-
$modifiers = isset($matches['modifiers']) ? $matches['modifiers'] : '';
727+
$modifiers = $matches['modifiers'] ?? '';
728728

729729
$data = $this->parseBlockScalar($matches['separator'], preg_replace('#\d+#', '', $modifiers), abs((int) $modifiers));
730730

0 commit comments

Comments
 (0)