-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Handle Recursive multiple class string array on Com…
…pleteVarDocTypePropertyRector (#520) * [TypeDeclaration] Skip Recursive multiple class string array on CompleteVarDocTypePropertyRector * debug * fix * [ci-review] Rector Rectify Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
834ea49
commit e5d95bd
Showing
2 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
...ty/CompleteVarDocTypePropertyRector/Fixture/recursive_multiple_class_string_array.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,60 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\CompleteVarDocTypePropertyRector\Fixture; | ||
|
||
class InvokableA {} | ||
class InvokableB {} | ||
class InvokableC {} | ||
class FactoryA {} | ||
class FactoryB {} | ||
class FactoryC {} | ||
|
||
final class RecursiveMultipleClassStringArray | ||
{ | ||
public $services = [ | ||
'invokables' => [ | ||
InvokableA::class, | ||
InvokableB::class, | ||
InvokableC::class, | ||
], | ||
'factories' => [ | ||
FactoryA::class, | ||
FactoryB::class, | ||
FactoryC::class, | ||
], | ||
]; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\Property\CompleteVarDocTypePropertyRector\Fixture; | ||
|
||
class InvokableA {} | ||
class InvokableB {} | ||
class InvokableC {} | ||
class FactoryA {} | ||
class FactoryB {} | ||
class FactoryC {} | ||
|
||
final class RecursiveMultipleClassStringArray | ||
{ | ||
/** | ||
* @var array<string, mixed[]> | ||
*/ | ||
public $services = [ | ||
'invokables' => [ | ||
InvokableA::class, | ||
InvokableB::class, | ||
InvokableC::class, | ||
], | ||
'factories' => [ | ||
FactoryA::class, | ||
FactoryB::class, | ||
FactoryC::class, | ||
], | ||
]; | ||
} | ||
|
||
?> |
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