1
0
Fork 0
composer/tests/Composer/Test
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
..
Advisory Add audit.ignored config setting to ignore security advisories by id or CVE id, fixes #11298 (#11556) 2023-07-21 14:36:38 +02:00
Autoload Fix PHPStan after running autoloader tests (#11558) 2023-07-21 14:34:59 +02:00
Command Tests for base dependency command (#11547) 2023-08-29 15:06:19 +02:00
Config [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Console Fix CS (#11003) 2022-08-17 14:20:07 +02:00
DependencyResolver Optimize PoolBuilder to not load replaced targets if not required 2023-05-02 22:10:18 +02:00
Downloader PHP 8.3 | Tests: fix deprecation notices (#11599) 2023-08-30 11:42:33 +02:00
EventDispatcher Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
Filter/PlatformRequirementFilter [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Fixtures Fix problem output of exact constraints to state more clearly that only those versions are matched (#11521) 2023-06-23 13:13:20 +02:00
IO Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
Installer Set $_SERVER['SCRIPT_NAME'] within proxy command (#11562) 2023-08-02 11:55:24 +02:00
Json Preserve indentation when writing JSON files (#11390) 2023-07-19 14:13:06 +02:00
Mock Audit: ignores configured repository options (#11173) 2023-08-29 15:16:34 +02:00
Package Add support for phpunit 10 (#11532) 2023-07-21 10:39:20 +02:00
Platform [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Plugin [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Question [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
Repository Audit: ignores configured repository options (#11173) 2023-08-29 15:16:34 +02:00
Script Fix CS (#11003) 2022-08-17 14:20:07 +02:00
Util Fix broken junctions leading to installation failure on Windows (#11550) 2023-07-21 10:59:59 +02:00
AllFunctionalTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
ApplicationTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
CacheTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
CompletionFunctionalTest.php [Tests] Use static data providers (#11197) 2022-11-24 14:39:08 +01:00
ComposerTest.php Fix CS (#11003) 2022-08-17 14:20:07 +02:00
ConfigTest.php Add IOMock and get rid of all withConsecutive calls in tests (#11497) 2023-06-07 14:35:16 +02:00
DefaultConfigTest.php Enable strict types on all files 2022-02-24 13:24:34 +01:00
DocumentationTest.php Add support for Application::setCatchErrors in symfony 6.4+, refs symfony/symfony#50420 2023-07-28 19:33:33 +02:00
FactoryTest.php Enable strict types on all files 2022-02-24 13:24:34 +01:00
InstalledVersionsTest.php PHP 8.3 | Tests: fix deprecation notices (#11599) 2023-08-30 11:42:33 +02:00
InstallerTest.php Update deps, fix phpstan issues, update baseline (1711, 49) 2023-03-21 10:36:42 +01:00
TestCase.php Add support for Application::setCatchErrors in symfony 6.4+, refs symfony/symfony#50420 2023-07-28 19:33:33 +02:00