It actually doesn't according to http://sandbox.onlinephpfunctions.com/code/8804b49c23d620228..., though different PHP versions could produce different results.
<?php //Enter your code here, enjoy!
function foo(string $bar) { return $bar . $bar; }
echo foo(1234);