mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 10:57:08 +01:00
6d09418a23
* Detect unused return values * Allow static-returning instance methods (presumed to be fluent) * Make $is_used the default for Codebase::methodExists
14 lines
253 B
Markdown
14 lines
253 B
Markdown
# PossiblyUnusedMethod
|
|
|
|
Emitted when `--find-dead-code` is turned on and Psalm cannot find any calls to a public or protected method.
|
|
|
|
```php
|
|
<?php
|
|
|
|
class A {
|
|
public function foo() : void {}
|
|
public function bar() : void {}
|
|
}
|
|
(new A)->foo();
|
|
```
|