Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 265 Bytes

PossiblyUnusedReturnValue.md

File metadata and controls

14 lines (11 loc) · 265 Bytes

PossiblyUnusedReturnValue

Emitted when --find-dead-code is turned on and Psalm cannot find any uses of a public/protected method’s return type.

<?php

class A {
    public function foo() : string {
        return "hello";
    }
}
(new A)->foo();