Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 313 Bytes

UnusedMethod.md

File metadata and controls

16 lines (13 loc) · 313 Bytes

UnusedMethod

Emitted when --find-dead-code is turned on and Psalm cannot find any uses of a given private method or function

<?php

class A {
    public function __construct() {
        $this->foo();
    }
    private function foo() : void {}
    private function bar() : void {}
}
$a = new A();