-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php71] Skip typed array property on CountOnNullRector (#1049)
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com> Co-authored-by: Alexander Melihov <amelihovv@ya.ru> Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
fd5edff
commit ec90557
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...s-tests/Php71/Rector/FuncCall/CountOnNullRector/Fixture/skip_typed_array_property.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php71\Rector\FuncCall\CountOnNullRector\Fixture; | ||
|
||
final class SkipTypedArrayProperty | ||
{ | ||
private array $items; | ||
|
||
public function __construct() | ||
{ | ||
$this->items = []; | ||
} | ||
|
||
public function count(): int | ||
{ | ||
return count($this->items); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters