1
0
Fork 0
composer/tests
Juliette 512690dba4
PHP 8.3 | Tests: fix deprecation notices (#11599)
* PHP 8.3 | ZipDownloaderTest: fix deprecation notice

Calling `ReflectionProperty::setValue()` with only one argument (to set a static property) is deprecated.
Passing `null` as the first (`$object`) parameter will work cross-version.

As the `ZipDownloaderTest::setPrivateProperty()` method has a `null` default value for the `$obj` parameter anyway, this means the if/else toggle can be removed.

Ref: https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#reflectionpropertysetvalue

* PHP 8.3 | InstalledVersionsTest: fix deprecation notice

Calling `ReflectionProperty::setValue()` with only one argument (to set a static property) is deprecated.
Passing `null` as the first (`$object`) parameter will work cross-version.

Ref: https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#reflectionpropertysetvalue

---------

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2023-08-30 11:42:33 +02:00
..
Composer/Test PHP 8.3 | Tests: fix deprecation notices (#11599) 2023-08-30 11:42:33 +02:00
bootstrap.php Update PHPStan (#11222) 2022-12-17 23:12:38 +01:00
complete.phpunit.xml Exclude PHPStan extensions from PHPUnit coverage 2023-01-03 18:57:00 +11:00
console-application.php Fix a bunch of type errors in SelfUpdateCommand, fixes #10696, closes #10704 2022-04-06 21:35:26 +02:00