From fb917e2a15e5ad1d7aec63808102b9bd675d14d9 Mon Sep 17 00:00:00 2001 From: Matthew Reishus Date: Fri, 4 Oct 2024 15:51:10 +0000 Subject: [PATCH] find_psr4_file: Quick exit if psr4_map is not populated --- projects/packages/autoloader/src/class-version-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/packages/autoloader/src/class-version-loader.php b/projects/packages/autoloader/src/class-version-loader.php index c3f3fc3dce896..cc7dcd6d4d854 100644 --- a/projects/packages/autoloader/src/class-version-loader.php +++ b/projects/packages/autoloader/src/class-version-loader.php @@ -135,7 +135,7 @@ private function select_newest_file( $classmap_data, $psr4_data ) { * @return array|null $data The version and path path to the file if found, null otherwise. */ private function find_psr4_file( $class_name ) { - if ( ! isset( $this->psr4_map ) ) { + if ( empty( $this->psr4_map ) ) { return null; }