I got asked how to get the type of a parameter with reflection with PHP.
The expected output is:
lars-reflection-test> php .\index.php
int(1)
string(3) "int"
Warning
This does not support PHP 8 union types https://www.php.net/manual/en/class.reflectionuniontype.php