mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 17:52:45 +01:00
216 B
216 B
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);