<?php function foo(\array $array) {} foo([]); //TypeError: foo(): Argument #1 ($array) must be of type array, array given, function goo(\callable $callable) {} goo(strlen(...)); //TypeError: foo(): Argument #1 ($array) must be of type callable, array Colsure, function hoo(\int $int) {} hoo(1); //Type declaration 'int' must be unqualifid
You have javascript disabled. You will not be able to edit any code.