Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 184 Bytes

RedundantCondition.md

File metadata and controls

13 lines (10 loc) · 184 Bytes

RedundantCondition

Emitted when conditional is redundant given previous assertions

<?php

class A {}
function foo(A $a) : ?A {
    if ($a) return $a;
    return null;
}