Skip to content
Snippets Groups Projects
Commit 8bf27bec authored by Seamus Lee's avatar Seamus Lee
Browse files

[REF][PHP8.1] Fix Extension Manager Module test failures on php8.1 due to...

[REF][PHP8.1] Fix Extension Manager Module test failures on php8.1 due to passing in null to dirname
parent eb4a92db
Branches
Tags
No related merge requests found
......@@ -53,7 +53,7 @@ class LegacySpecScanner implements AutoServiceInterface {
array_column(\CRM_Extension_System::singleton()->getMapper()->getActiveModuleFiles(), 'filePath')
);
foreach ($locations as $location) {
$path = \CRM_Utils_File::addTrailingSlash(dirname($location)) . str_replace('\\', DIRECTORY_SEPARATOR, $namespace);
$path = \CRM_Utils_File::addTrailingSlash(dirname($location ?? '')) . str_replace('\\', DIRECTORY_SEPARATOR, $namespace);
if (!file_exists($path) || !is_dir($path)) {
$resource = new \Symfony\Component\Config\Resource\FileExistenceResource($path);
$container->addResource($resource);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment