Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 216 Bytes

PossiblyNullArgument.md

File metadata and controls

10 lines (7 loc) · 216 Bytes

PossiblyNullArgument

Emitted when calling a function with a value that’s possibly null when the function does not expect it

<?php

function foo(string $s) : void {}
foo(rand(0, 1) ? "hello" : null);