Skip to content

Commit

Permalink
[CodeQuality] Add fixture test for skip nullable array from property …
Browse files Browse the repository at this point in the history
…with default value (#6417)
  • Loading branch information
samsonasik authored Nov 12, 2024
1 parent 3949fc2 commit 0cac71a
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace Rector\Tests\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector\Fixture;

final class SkipNullable
{
/** @var array */
public $property = [];

public function run()
{
$this->property = null;
}

public function isEmpty(): bool
{
return empty($this->property);
}
}

0 comments on commit 0cac71a

Please sign in to comment.