Skip to content

Commit

Permalink
Add parentheses for ternary
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Würth <ravage@bluewin.ch>
  • Loading branch information
kylekatarnls and ravage84 committed Aug 21, 2023
1 parent 81c322a commit 149c2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/php/fix-php-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"#[\\ReturnTypeWillChange]\npublic function hasChildren",
),
),
__DIR__ . '/../../../vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php' => PHP_VERSION >= 7 ? array(
__DIR__ . '/../../../vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php' => (PHP_VERSION >= 7) ? array(
array(
'$numTests = count($coverageData[$i]);',
'$numTests = count($coverageData[$i] ?? []);',
Expand Down Expand Up @@ -172,7 +172,7 @@
'#[\\ReturnTypeWillChange]',
),
),
__DIR__ . '/../../../vendor/phpunit/php-code-coverage/src/CodeCoverage.php' => PHP_VERSION >= 7 ? array(
__DIR__ . '/../../../vendor/phpunit/php-code-coverage/src/CodeCoverage.php' => (PHP_VERSION >= 7) ? array(
array(
'$docblock = $token->getDocblock();',
'$docblock = $token->getDocblock() ?? \'\';',
Expand Down

0 comments on commit 149c2ef

Please sign in to comment.