Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Jan 22, 2022
1 parent b424851 commit 3c30fd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/FunctionCallTest.php
Expand Up @@ -1801,7 +1801,7 @@ function sayHello(string $needle): void {
],
],
'allowConstructorAfterEnumExists' => [
'<?php
'code' => '<?php
function foo(string $s) : void {
if (enum_exists($s)) {
new $s();
Expand All @@ -1812,7 +1812,7 @@ function foo(string $s) : void {
'php_version' => '8.1',
],
'refineWithEnumExists' => [
'<?php
'code' => '<?php
function foo(string $s) : void {
if (enum_exists($s)) {
new ReflectionClass($s);
Expand All @@ -1823,7 +1823,7 @@ function foo(string $s) : void {
'php_version' => '8.1',
],
'refineWithClassExistsOrEnumExists' => [
'<?php
'code' => '<?php
function foo(string $s) : void {
if (trait_exists($s) || enum_exists($s)) {
new ReflectionClass($s);
Expand Down

0 comments on commit 3c30fd1

Please sign in to comment.