Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php /** * @param SplFixedArray<int> $_array */ function testAcceptArrayInt(SplFixedArray $_array): void {} $array = SplFixedArray::fromArray([1, 2, 3]); /** @psalm-trace $array */; testAcceptArrayInt($array); /** @psalm-trace $array */; // $array type was specialized
Snippet created on May 4 2023 at 08:41 UTC
Settings
Get link