mirror of
https://github.com/danog/psalm.git
synced 2024-12-12 09:19:40 +01:00
17 lines
313 B
Markdown
17 lines
313 B
Markdown
# UnusedMethod
|
|
|
|
Emitted when `--find-dead-code` is turned on and Psalm cannot find any uses of a given private method or function
|
|
|
|
```php
|
|
<?php
|
|
|
|
class A {
|
|
public function __construct() {
|
|
$this->foo();
|
|
}
|
|
private function foo() : void {}
|
|
private function bar() : void {}
|
|
}
|
|
$a = new A();
|
|
```
|