From 479a5429a532c64a0ced8708946044275219e54f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=C3=A9na=20Proxima?= <adam@phenaproxima.net> Date: Wed, 13 Dec 2023 11:11:43 -0500 Subject: [PATCH] oops, fix wrong logic --- package_manager/src/PathExcluder/UnknownPathExcluder.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package_manager/src/PathExcluder/UnknownPathExcluder.php b/package_manager/src/PathExcluder/UnknownPathExcluder.php index 964f004302..d997d1e1da 100644 --- a/package_manager/src/PathExcluder/UnknownPathExcluder.php +++ b/package_manager/src/PathExcluder/UnknownPathExcluder.php @@ -112,11 +112,9 @@ final class UnknownPathExcluder implements EventSubscriberInterface { ->get('known_paths') ?: []; foreach ($safe_paths as $path) { if ($this->pathFactory->create($path)->isAbsolute()) { - $known_paths[] = $path; - } - else { throw new \InvalidArgumentException("'$path' must be relative to the project root."); } + $known_paths[] = $path; } // Search for all files (including hidden ones) in the project root. We need -- GitLab