Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php function app(?string $op1, string $op2): string { return match(id($op1 ?? $op2)) { 'val1', 'val2' => '', default => 'test', }; } function id(string $value): string { return $value; }
Snippet created on May 4 2023 at 08:59 UTC
Settings
Get link