Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
phpunit
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Sep 2021 at 07:52 UTC
Updated:
7 Oct 2021 at 10:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottOriginally I refactored this by doing:
but on reading the code more carefully... I think we can do something simpler - there's no need to call file_exists - we can just filter out the NULLS.
is_dir() guarentees that the paths found in the sites directory exist and are directories... all the other values added to $paths are guaranteed to exist and if they don't Drupal moans a lot...
Comment #3
longwaveYep,
is_dir()already checks if the directory exists, no need to do it twice.Comment #5
catchCommitted 504b0db and pushed to 9.3.x. Thanks!