Skip to content

Commit

Permalink
Revert "find_psr4_file: Quick exit if psr4_map is not populated (#39646
Browse files Browse the repository at this point in the history
…)"

This reverts commit c647351.
  • Loading branch information
mreishus committed Oct 7, 2024
1 parent 8443130 commit a9eee8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions projects/packages/autoloader/changelog/update-find_psr4_file

This file was deleted.

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 ( empty( $this->psr4_map ) ) {
if ( ! isset( $this->psr4_map ) ) {
return null;
}

Expand Down

0 comments on commit a9eee8c

Please sign in to comment.