Having to backport a PHP 7 app to make it compatible with PHP 5.4 and I'm getting the following error :
<b>Parse error</b>:  syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in blah blah...
With this conditional statement in one of my functions :
if (!empty(MY_CONSTANT)) {
   // blah...
}
It's been a long time since I used PHP 5.4, why is this error being thrown?
 
     
    