1
0
Fork 0
composer/tests/Composer/Test/Downloader
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
..
ArchiveDownloaderTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
DownloadManagerTest.php Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
FileDownloaderTest.php Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
FossilDownloaderTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
GitDownloaderTest.php Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
HgDownloaderTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
PerforceDownloaderTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
XzDownloaderTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
ZipDownloaderTest.php PHP 8.3 | Tests: fix deprecation notices (#11599) 2023-08-30 11:42:33 +02:00