Skip to content

Commit d536c47

Browse files
committed
bug #57275 Fix autoload configs to avoid warnings when building optimized 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
2 parents 20a6a54 + d9659b7 commit d536c47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"autoload": {
7373
"psr-4": { "Symfony\\Component\\Validator\\": "" },
7474
"exclude-from-classmap": [
75-
"/Tests/"
75+
"/Tests/",
76+
"/Resources/bin/"
7677
]
7778
},
7879
"minimum-stability": "dev"

0 commit comments

Comments
 (0)