In PHP, a const should be a value, not an expression. Therefore const FOO_CONST = 'foo' . 'bar'; const FOO_CONST = 'foo' . 'bar'; will not work either.
You must use define or a member of the class that is initialized in the constructor instead of const . Initializing a class member outside the class method with an expression does not work either.
source share