Rewrite for PHP 8
The original operator extension has been broken since a change in PHP 7.4 caused it to be unable to handle the assignment ops. I rewrote the extension for PHP 8 starting in August of 2023 jb-lopez/php-operators.
This PR is a merge from my rewrite on top of the existing extension. It's been fully tested with PHP 8.4.
I noticed there's a 0.5.0 on PECL. Is there a release or a tag that supports that release? I'd love to see exactly which code is behind that.
The exact code is available in the tgz file on PECL.
As the lead maintainer, I want nothing more than to be able to merge this PR in GitHub. But since this extension was abandoned there was no one to hand over ownership. I just have to keep poking people until someone can grant me permissions in GitHub for this repo.
I guess the alternative is to create a fork? I know that means potentially making a new PECL package, etc. But that doesn't seem like the end of the world.
Also, I was wondering how folks get around the problem of IDEs complaining about the fact you it showing errors like "cant use + on classes" etc, when using this extension. I love the idea of this, but not having PHPStan support, nor the IDEs liking it, makes it hard to intergrate, unfortunately :-(.