You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But composer fails to extract the class name and extracts ReportExecutionStatus:string instead of ReportExecutionStatus.
If I change the enum definition to enum ReportExecutionStatus: string it works as expected.
$ composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
Missing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking composer version: OK
Composer version: 2.2.5
PHP version: 8.1.2
PHP binary path: /usr/local/bin/php
OpenSSL version: OpenSSL 1.1.1l 24 Aug 2021
cURL version: 7.80.0 libz 1.2.11 ssl OpenSSL/1.1.1l
zip: extension present, unzip present, 7-Zip not available
When I run this command: composer -vvv dumpautoload I get the following output:
$ composer -vvv dumpautoload
Running 2.2.5 (2022-01-21 17:25:52) with PHP 8.1.2 on Linux / 5.11.0-34-generic
Reading ./composer.json (/app/composer.json)
Loading config file ./composer.json (/app/composer.json)
Checked CA file /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a file.
Checked directory /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a directory.
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/app): git branch -a --no-color --no-abbrev -v
Executing command (/app): git describe --exact-match --tags
Executing command (CWD): git --version
Executing command (/app): git log --pretty="%H" -n1 HEAD
Executing command (/app): hg branch
Executing command (/app): fossil branch list
Executing command (/app): fossil tag list
Executing command (/app): svn info --xml
Failed to initialize global composer: Composer could not find the config file: /.composer/composer.json
Reading /app/vendor/composer/installed.json
Loading plugin Symfony\Flex\Flex (from symfony/flex)
Loading plugin Symfony\Component\Runtime\Internal\ComposerPlugin (from symfony/runtime)
Generating optimized autoload files
Class App\Value\ReportExecutionStatus:string located in ./src/Value/ReportExecutionStatus.php does not comply with psr-4 autoloading standard. Skipping.
> post-autoload-dump: Symfony\Component\Runtime\Internal\ComposerPlugin->updateAutoloadFile
Generated optimized autoload files containing 7212 classes
And I expected this to happen:
No warning, ReportExecutionStatus should be detected as valid PSR-4 and written to autoload_classmap.php.
The text was updated successfully, but these errors were encountered:
I have defined an enum in my code as follows:
But composer fails to extract the class name and extracts
ReportExecutionStatus:string
instead ofReportExecutionStatus
.If I change the enum definition to
enum ReportExecutionStatus: string
it works as expected.My
composer.json
:Output of
composer diagnose
:When I run this command:
composer -vvv dumpautoload
I get the following output:And I expected this to happen:
No warning,
ReportExecutionStatus
should be detected as valid PSR-4 and written toautoload_classmap.php
.The text was updated successfully, but these errors were encountered: