Skip to content

Commit

Permalink
fix(composer): add Psl namespace mapped to src/Psl (#311)
Browse files Browse the repository at this point in the history
Fixes #310

Tools such as `maglnet/ComposerRequireChecker` rely on symbols being
autoloadable, but due to the way the autoloader works here, it seems the
symbols can't be picked up. The issue does not affect `2.0.x-dev` since the
path `src/Psl` is mapped in `composer.json`, so the symbols are able to be
loaded. So this path map is backported to `1.9.x` series, so that tools that
work in this way can see the `Psl\*` functions.
  • Loading branch information
asgrim authored Dec 10, 2021
1 parent ebbc67d commit 5c20649
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 @@ -19,7 +19,8 @@
},
"autoload": {
"psr-4": {
"Psl\\Integration\\": "integration"
"Psl\\Integration\\": "integration",
"Psl\\": "src/Psl"
},
"files": [
"src/bootstrap.php"
Expand Down

0 comments on commit 5c20649

Please sign in to comment.