1 2 3 4 5 6 7 8 9 10 11 12 |
<?php declare(strict_types=1); function test(callable $func): float { return 123 + $func(); } echo test(function () { return 456; }); |
1 |
579 |
1 2 3 4 5 6 7 8 9 10 11 12 |
<?php declare(strict_types=1); function test(callable $func): float { return 123 + $func(); } echo test(function () { return 456; }); |
1 |
579 |