Skip to content

Commit

Permalink
find_psr4_file: Quick exit if psr4_map is not populated
Browse files Browse the repository at this point in the history
  • Loading branch information
mreishus committed Oct 7, 2024
1 parent ce31d5d commit fb917e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/packages/autoloader/src/class-version-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fb917e2

Please sign in to comment.