Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 253 Bytes

PossiblyUnusedMethod.md

File metadata and controls

13 lines (10 loc) · 253 Bytes

PossiblyUnusedMethod

Emitted when --find-dead-code is turned on and Psalm cannot find any calls to a public or protected method.

<?php

class A {
    public function foo() : void {}
    public function bar() : void {}
}
(new A)->foo();