mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 13:10:49 +01:00
18 lines
243 B
Markdown
18 lines
243 B
Markdown
# AbstractMethodCall
|
|
|
|
Emitted when an attempt is made to call an abstract static method directly
|
|
|
|
```php
|
|
<?php
|
|
|
|
abstract class Base {
|
|
abstract static function bar() : void;
|
|
}
|
|
|
|
Base::bar();
|
|
```
|
|
|
|
## Why this is bad
|
|
|
|
It's not allowed by PHP.
|