Skip to content

Commit

Permalink
bug #57275 Fix autoload configs to avoid warnings when building optim…
Browse files Browse the repository at this point in the history
…ized autoloaders (Seldaek)

This PR was merged into the 5.4 branch.

Discussion
----------

Fix autoload configs to avoid warnings when building optimized autoloaders

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License       | MIT

The next composer release next week (you can try `composer dump -o` with snapshots right now) warns a bit more about classes which do not match the psr-4 rules they are found in.. Symfony has quite a few false positives there because the rules are using `""` as path for all individual components so all files of the component are scanned by default. I already made sure Composer excludes the vendor dir by default now, and this fixes the rest of the errors I noticed.

Commits
-------

8882804add Fix autoload configs to avoid warnings when building optimized autoloaders
  • Loading branch information
fabpot committed Jun 1, 2024
2 parents 20a6a54 + d9659b7 commit d536c47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"autoload": {
"psr-4": { "Symfony\\Component\\Validator\\": "" },
"exclude-from-classmap": [
"/Tests/"
"/Tests/",
"/Resources/bin/"
]
},
"minimum-stability": "dev"
Expand Down

0 comments on commit d536c47

Please sign in to comment.