For example, the following code runs ok:
<?php
function test(int $p) {
var_dump($p);
return $p;
}
test(1);
test(true);
Live test: http://sandbox.onlinephpfunctions.com/code/c015a6c98a2efb8f5a335a1b4cc802488786203f
Is there any way to make it doesn't accept boolean values?