Psalm
Get started
Documentation
Plugins
Articles
GitHub
<?php function foo(?string $a, ?string $b) : string { if ($a === null && $b === null) { return ""; } if ($a !== null) { return $a; } return $b; }
Snippet created on November 2 2020 at 04:25 UTC
Settings
Get link