mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 08:49:52 +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);