repman-io / repman

Repman - PHP Repository Manager: packagist proxy and host for private packages
https://repman.io
MIT License
517 stars 106 forks source link

Make it PHP 8.2 compatible #660

Open xvilo opened 1 year ago

xvilo commented 1 year ago

This branch, branched off from https://github.com/repman-io/repman/pull/580. It's that + PHP 8.0 to PHP 8.2 compatibility fixes and updates

xvilo commented 1 year ago
$ vendor/bin/phpunit --testdox           
PHPUnit 9.5.25 #StandWithUkraine

Dist (Buddy\Repman\Tests\Unit\Dist)
 ✔ Version with slash
 ✔ Version dev master

Member (Buddy\Repman\Tests\Unit\Entity\Organization\Member)
 ✔ Test role validation
 ✔ Role validation on role change
[....]
ERRORS!
Tests: 500, Assertions: 1139, Errors: 22, Risky: 2.

$ php --version 
PHP 8.2.7 (cli) (built: Jun 15 2023 02:44:23) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies

22 errors as is

xvilo commented 1 year ago

Some progress

FAILURES!
Tests: 500, Assertions: 1186, Failures: 5, Risky: 2.
xvilo commented 9 months ago

Small note, I disabled the repman.io proxy as this seems to be very outdated.

xvilo commented 9 months ago

Tests: 500, Assertions: 1185, Errors: 2, Failures: 6, Risky: 1.