Add fixes for PHP 8.2
See https://github.com/mikespub-org/seblucas-cops/releases to download unofficial "1.2.3" or "1.3.2" packages, or clone/download source code from master branch directly from https://github.com/mikespub-org/seblucas-cops
The 1.2.3 package linked to above is throwing errors for me:
[Sat Mar 25 18:38:41 2023] PHP Warning: require(/cops/vendor/composer/../myclabs/deep-copy/src/DeepCopy/deep_copy.php): Failed to open stream: No such file or directory in /cops/vendor/composer/autoload_real.php on line 45
[Sat Mar 25 18:38:41 2023] PHP Fatal error: Uncaught Error: Failed opening required '/cops/vendor/composer/../myclabs/deep-copy/src/DeepCopy/deep_copy.php' (include_path='/cops/vendor/phing/phing/classes:/cops/vendor/phpunit/phpunit-selenium:/cops/vendor/appium/php-client:.:/usr/share/php8') in /cops/vendor/composer/autoload_real.php:45
Stack trace:
#0 /cops/vendor/composer/autoload_real.php(49): {closure}()
#1 /cops/vendor/autoload.php(25): ComposerAutoloaderInit0d1b0e9376a19e86b57f1563bfba988b::getLoader()
#2 /cops/config.php(9): require_once('...')
#3 /cops/index.php(10): require_once('...')
#4 {main}
thrown in /cops/vendor/composer/autoload_real.php on line 45
[Sat Mar 25 18:38:41 2023] 172.30.32.1:53540 [500]: GET / - Uncaught Error: Failed opening required '/cops/vendor/composer/../myclabs/deep-copy/src/DeepCopy/deep_copy.php' (include_path='/cops/vendor/phing/phing/classes:/cops/vendor/phpunit/phpunit-selenium:/cops/vendor/appium/php-client:.:/usr/share/php8') in /cops/vendor/composer/autoload_real.php:45
Stack trace:
#0 /cops/vendor/composer/autoload_real.php(49): {closure}()
#1 /cops/vendor/autoload.php(25): ComposerAutoloaderInit0d1b0e9376a19e86b57f1563bfba988b::getLoader()
#2 /cops/config.php(9): require_once('...')
#3 /cops/index.php(10): require_once('...')
#4 {main}
thrown in /cops/vendor/composer/autoload_real.php on line 45
Good to know, thanks @dunxd - I may have missed cleaning up the development autoload files before making the .zip package, sorry about that.
If you happen to have composer 2 installed on your system, you can simply install/update the packages again:
$ composer install --no-dev -o
That will:
- composer install: (re-)install all the needed run packages,
- --no-dev: remove the development packages (if any), and
- -o: update & optimize the autoload files again.
You'll find an updated cops-1.2.3b.zip package on the release page above...
@mikespub This project is no longer maintained by DEV. Maybe you can start a new software (with a new name or something like "COPS improved") and create a new official repo? I would love to have an active project. I can help on the language side, as usual (and some documentation)
Hi @horus68 I certainly appreciate your enthusiasm and willingness to help out, as I've seen in these issues and PRs as well :-) But I'm afraid I won't be able to maintain this project on a regular basis though.
This was just a temporary "itch" to scratch for me: get both COPS and BicBucStriim to work adequately on "modern" PHP 8.2 platforms so that they can live on for another 2 years
So far I've cleaned up and fixed all the PHP 8.2 issues that I found, updated dependencies where I could without major rewrite, and merged the most "interesting" pull requests or forks I discovered into the main code base here. If there's another big one I missed please let me know...
Soon some other "developer" will come around with his/her own wish list, and they'll be able to pick off from this pull request, or fork directly from https://github.com/mikespub-org/seblucas-cops to continue improving it.
And in the meantime "regular" users will be able to use the packages I prepared as starting point, and perhaps a kind "distributor" will prepare and maintain some modern docker images based on what I've started...
And so the project lives on :-)
Just got back from a holiday, and have been using the 1.3.2 release and not getting so many errors. Thanks for your work on this @mikespub .
Further updates are available directly from https://github.com/mikespub-org/seblucas-cops on the main branch.