You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to test code which uses GearmanWorker class from gearman extension. This class has method named "clone", that was ok in php v4, but in php v5 it is a keyword, and test failing with message:
PHP Parse error: syntax error, unexpected 'clone' (T_CLONE), expecting identifier (T_STRING) in /somepath/vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/ClassCreator.php(48) : eval()'d code on line 13
P.S. to test this behaviour you can add
/**
* @param GearmanWorker $gw
*/
to any method (with gearman extension installed)
The text was updated successfully, but these errors were encountered:
I tried to test code which uses GearmanWorker class from gearman extension. This class has method named "clone", that was ok in php v4, but in php v5 it is a keyword, and test failing with message:
P.S. to test this behaviour you can add
to any method (with gearman extension installed)
The text was updated successfully, but these errors were encountered: