-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 7: Return type declarations #74
Comments
I'm also having this error, and trying to use AspectMock. |
@jmauerhan Hi. For me temporary solution is not to use new features from 7 version only in those files that will be mocked:
|
Not really an option for me :) I switched to PHP-Mock because I was only using AspectMock for functions. https://github.com/php-mock/php-mock |
For others who come across this thread, it looks like AspectMock's core dependency GoAOP will be abandoning its reliance on the outdated |
As far as I know, this repo is abandoned. There won't be any PHP 7 compatibility in the future. |
When use PHP 7: Return type declarations it's cause
[TokenReflection\Exception\ParseException] Unexpected token found.
Description for the new feature in PHP 7: http://php.net/manual/en/functions.returning-values.php
I'm using "codeception/aspect-mock": "*".
The text was updated successfully, but these errors were encountered: