1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +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