Skip to editor
Psalm
Docs
Playground
Plugins
Blog
Paid support
Share
Fix issues
Show original
PHP
Settings
<?php /** @param array<int, string> $arr */ function takesArray(array $arr) : void { if ($arr) { echo $arr[0]; } } /** @param list<string> $arr */ function takesList(array $arr) : void { if ($arr) { echo $arr[0]; } } takesArray(["hello"]); takesArray([1 => "hello"]); takesList([1 => "hello"]); takesList(["hello"]);
Issues
Types
idle
Saved Oct 9 2019 14:15 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue