Back to Psalm

AbstractMethodCall

docs/running_psalm/issues/AbstractMethodCall.md

6.16.1242 B
Original Source

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.