Skip to content

Commit

Permalink
skip empty dim fetch (#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Apr 28, 2022
1 parent 08bb10d commit 93030d3
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Rector\Tests\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector\Fixture;

final class SkipVariable
{
public function run($person2)
{
$person = [];

$person[] = 'Timmy';
$person['surname'] = 'Back';

return $person;
}
}

0 comments on commit 93030d3

Please sign in to comment.