Skip to editor
Psalm
Docs
Playground
Plugins
Blog
Paid support
Share
Fix issues
Show original
PHP
Settings
<?php /** * @template-covariant T */ interface Type { /** * @psalm-assert-if-true T $value */ public function matches(mixed $value): bool; } /** * @return Type<non-empty-string> */ function non_empty_string_type(): Type { exit(0); } $f = 'hello'; assert(non_empty_string_type()->matches($f));
Issues
Types
idle
Saved Oct 2 2021 20:47 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue