From 5c20649db277565d6a40a66edfc2bbf8dc7f19e0 Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Fri, 10 Dec 2021 10:34:36 +0000 Subject: [PATCH] fix(composer): add `Psl` namespace mapped to `src/Psl` (#311) 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. --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6212d997..f3efaaee 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,8 @@ }, "autoload": { "psr-4": { - "Psl\\Integration\\": "integration" + "Psl\\Integration\\": "integration", + "Psl\\": "src/Psl" }, "files": [ "src/bootstrap.php"