We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Instead of building closure with eval at https://github.com/lisachenko/php-deal/blob/master/src/PhpDeal/Aspect/ContractCheckerAspect.php#L149:
eval
if (!$invoker) { $invoker = function () { extract(func_get_arg(0)); return eval('return ' . func_get_arg(1) . '; ?>'); }; }
I can use a create_function or even additional cache file with definition of function body to optimize invocation of methods with contracts.
create_function
The text was updated successfully, but these errors were encountered:
create_function is deprecated since 7.2.0, so this approach is no-go anymore.
Sorry, something went wrong.
No branches or pull requests
Instead of building closure with
eval
at https://github.com/lisachenko/php-deal/blob/master/src/PhpDeal/Aspect/ContractCheckerAspect.php#L149:I can use a
create_function
or even additional cache file with definition of function body to optimize invocation of methods with contracts.The text was updated successfully, but these errors were encountered: