mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 02:47:02 +01:00
15 lines
196 B
Markdown
15 lines
196 B
Markdown
# CircularReference
|
|
|
|
Emitted when a class references itself as one of its parents
|
|
|
|
```php
|
|
<?php
|
|
|
|
class A extends B {}
|
|
class B extends A {}
|
|
```
|
|
|
|
## Why this is bad
|
|
|
|
The code above will not compile
|