function (classname $arg)
A function declared in this way will only accept an instance of the classname type as an argument, otherwise an exception will be thrown. But the built-in data types are not classes. From here two questions:
- where the documentation highlights this feature;
- whether it is possible to limit the type of the argument to the built-in data types directly when the function is declared.