Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(definitionresolver): infinite loop when indexing self referencing…
… classes (#670)
- Loading branch information
1 parent
71390c9
commit c7d25c7
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
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,20 @@ | ||
<?php | ||
namespace RecursiveTest; | ||
|
||
class A extends A {} | ||
|
||
class B extends C {} | ||
class C extends B {} | ||
|
||
class D extends E {} | ||
class E extends F {} | ||
class F extends D {} | ||
|
||
$a = new A; | ||
$a->undef_prop = 1; | ||
|
||
$b = new B; | ||
$b->undef_prop = 1; | ||
|
||
$d = new D; | ||
$d->undef_prop = 1; |
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