Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php /** * @return non-empty-list<string> */ function takesAString(string $value) : array { assert($value !== ''); return explode(',', $value); } foreach(takesAString('h,i') as $entry) { echo $entry; }
Snippet created on March 8 2021 at 11:19 UTC
Settings
Get link