-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Naming] Skip Doctrine collection with @var Collection<int, Checkbox>…
… on RenamePropertyToMatchTypeRector (#3209) * skip * Fixed 🎉 * prefer object type
- Loading branch information
1 parent
5a4111e
commit f2e4da5
Showing
2 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...RenamePropertyToMatchTypeRector/Fixture/skip_doctrine_collection_private_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,24 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Naming\Rector\Class_\RenamePropertyToMatchTypeRector\Fixture; | ||
|
||
use Doctrine\Common\Collections\ArrayCollection; | ||
use Doctrine\Common\Collections\Collection; | ||
|
||
final class SkipDoctrineCollectionPrivateProperty | ||
{ | ||
/** | ||
* @var Collection<int, Checkbox> | ||
*/ | ||
private Collection $checkboxes; | ||
|
||
public function __construct() | ||
{ | ||
$this->checkboxes = new ArrayCollection(); | ||
} | ||
|
||
public function getCheckboxes(): Collection | ||
{ | ||
return $this->checkboxes; | ||
} | ||
} |
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