1
0
Fork 0
composer/tests/Composer/Test
Ayesh Karunaratne 228428747a
Add support for autoloading Enums
PHP 8.1 supports Enums, and [Enums follow class-semantics](https://php.watch/versions/8.1/enums#class-semantics-autoload).

Composer's class-map generator currently looks for `class`, `interface`, and `trait` keywords. If Composer is run in PHP 8.1 or later, Composer now additionally looks for `enum` keyword as well. This is similar to how Hack's `enum` support is added.

This PR also adds tests for basic enums, backed enums, namespaced enums, and an enum that implements an interface and extends a class.
2021-02-06 15:51:18 +07:00
..
Autoload Add support for autoloading Enums 2021-02-06 15:51:18 +07:00
Command CS fixes 2020-11-22 14:52:39 +01:00
Config Make sure empty objects are not left behind when removing requires/.. fixes #9462 2020-11-12 11:09:15 +01:00
Console PHPStan fixes 2020-02-07 23:10:10 +01:00
DependencyResolver Merge pull request #9360 from naderman/pool-builder-unlock-consider-all-constraints 2020-12-03 16:59:39 +01:00
Downloader adjusted test expectations 2021-01-18 10:11:08 +01:00
EventDispatcher CS fixes 2020-11-22 14:52:39 +01:00
Fixtures Dont recommend to use with all dependencies option when it is already used 2021-02-03 23:43:35 -05:00
IO Fix warnings on higher phpunit versions 2020-09-11 11:01:32 +02:00
Installer Remove OperationInterface::getReason, closes #9230, closes #9263 2020-10-12 12:31:54 +02:00
Json Fix JSON manipulation issue with large files and jit enabled, fixes #9595 2021-01-12 11:02:43 +01:00
Mock CS fixes 2020-11-22 14:52:39 +01:00
Package Merge branch '1.10' 2021-01-27 15:46:58 +01:00
Platform CS fixes 2020-11-22 14:52:39 +01:00
Plugin Fix tests and edge case 2021-01-12 14:00:02 +01:00
Question CS fixes 2020-11-22 14:52:39 +01:00
Repository Merge branch '1.10' 2021-01-27 15:46:58 +01:00
Script Fix indenting 2019-07-29 16:44:50 +02:00
Util CS fixes 2020-11-22 14:52:39 +01:00
AllFunctionalTest.php CS fixes 2020-11-22 14:52:39 +01:00
ApplicationTest.php Fix tests 2021-01-12 14:59:21 +01:00
CacheTest.php CS fixes 2020-11-22 14:52:39 +01:00
ComposerTest.php CS fixes 2020-11-22 14:52:39 +01:00
ConfigTest.php CS fixes 2020-11-22 14:52:39 +01:00
DefaultConfigTest.php CS fixes 2020-11-22 14:52:39 +01:00
FactoryTest.php Fix factory test 2019-01-14 17:29:23 +01:00
InstalledVersionsTest.php Try fixing the build 2021-02-01 13:32:34 +01:00
InstallerTest.php CS fixes 2020-11-22 14:52:39 +01:00
PolyfillTestCase.php CS fixes 2020-11-22 14:52:39 +01:00
TestCase.php CS fixes 2020-11-22 14:52:39 +01:00