Skip to content

Commit

Permalink
add fixture for union
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Aug 22, 2024
1 parent 9708f61 commit d5b14b4
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace Rector\Tests\Php84\Rector\Param\ExplicitNullableParamTypeRector\Fixture;

use DateTime;
use stdClass;

class DoNotReprintNodeType2
{
public function run(stdClass|DateTime $a = null)
{
}
}

?>
-----
<?php

namespace Rector\Tests\Php84\Rector\Param\ExplicitNullableParamTypeRector\Fixture;

use DateTime;
use stdClass;

class DoNotReprintNodeType2
{
public function run(stdClass|DateTime|null $a = null)
{
}
}

?>

0 comments on commit d5b14b4

Please sign in to comment.