fix(composer): Fix psr-4 invalid namespace#35
Merged
pkotets merged 1 commit intoreaddle:masterfrom Mar 16, 2026
Merged
Conversation
# Veuillez saisir le message de validation pour vos modifications. Les lignes # commençant par '#' seront conservées ; vous pouvez les supprimer vous-même # si vous le souhaitez. Un message vide abandonne la validation. # # Sur la branche fix/non-empty-psr4-prefix-error # Modifications qui seront validées : # modifié : composer.json # # Veuillez saisir le message de validation pour vos modifications. Les lignes # commençant par '#' seront conservées ; vous pouvez les supprimer vous-même # si vous le souhaitez. Un message vide abandonne la validation. # # Sur la branche fix/non-empty-psr4-prefix-error # Modifications qui seront validées : # modifié : composer.json #
Collaborator
Indeed. Thank you for the fix! |
pkotets
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix PSR-4 test namespace missing trailing backslash in composer.json
Problem
The autoload-dev section of composer.json declared the test namespace without the required trailing namespace separator:
According to the PSR-4 specification and Composer's implementation, all namespace prefixes must end with a backslash (). Without it, Composer throws a fatal error when generating the autoloader:
This made it impossible to run composer install (or composer dump-autoload) successfully, completely breaking the test suite bootstrap.
Fix
Added the missing trailing backslash to the namespace prefix:
Impact
Without this fix, vendor/autoload.php was never generated, causing all PHPUnit tests to fail at the bootstrap stage regardless of their content.