1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 13:10:49 +01:00
psalm/docs/running_psalm/issues/CircularReference.md
2020-03-21 09:48:35 -04:00

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