mirror of
https://github.com/danog/psalm.git
synced 2024-12-17 11:56:59 +01:00
6d09418a23
* Detect unused return values * Allow static-returning instance methods (presumed to be fluent) * Make $is_used the default for Codebase::methodExists
253 B
253 B
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();