Skip to content

Commit

Permalink
Create SkipExplicitlyNullableParams.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mbolli authored Jan 6, 2025
1 parent dc19a23 commit 27a118c
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

namespace Rector\TypePerfect\Tests\Rules\NarrowPublicClassMethodParamTypeRule\Fixture;

final class SkipExplicitlyNullableParams
{
public function test(
?bool $bool = true,
): bool
{
return $bool;
}

static public function run(): void
{
$skipDateTimeMix = new SkipExplicitlyNullableParams();
$skipDateTimeMix->test(false);
}
}

0 comments on commit 27a118c

Please sign in to comment.