Skip to content
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

Enable native function invocation #190

Closed
ankitpokhrel opened this issue Sep 28, 2019 · 2 comments
Closed

Enable native function invocation #190

ankitpokhrel opened this issue Sep 28, 2019 · 2 comments

Comments

@ankitpokhrel
Copy link
Owner

Since PHP 7.0, some functions are replaced by opcodes, producing much faster code. Functions like these and these can be referenced with root namespace \ before function invocation to speed up resolving.

We can use PHP-CS-Fixer native_function_invocation option for this.

php-cs-fixer fix src/ --rules=native_function_invocation --allow-risky=yes
@jonesdev
Copy link
Contributor

I would like to attempt this issue.

I'll take a look now and submit a PR if it goes well.

@ankitpokhrel ankitpokhrel added this to the v1.1 milestone Oct 2, 2019
@ankitpokhrel
Copy link
Owner Author

Done in #193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants