<?php const FOO = 'X'; $x = function(string $param): string { return $param . FOO; }; echo $x("x");