Это может произойти в нескольких сценариях, ниже приведен список известных сценариев:
// calling empty on a function
empty(myFunction($myVariable)); // the return value of myFunction should be saved into a variable
// then you can use empty on your variable
// используя круглые скобки для доступа к элементу массива, круглые скобки используются для вызова функции
if (isset($_POST('sms_code') == TRUE ) { ...
// that should be if(isset($_POST['sms_code']) == TRUE)
Это также может быть вызвано, когда мы пытаемся увеличить результат функции, как показано ниже:
$myCounter = '356';
$myCounter = intVal($myCounter)++; // we try to increment the result of the intVal...
// like the first case, the ++ needs to be called on a variable, a variable should hold the the return of the function then we can call ++ operator on it.