← All changes
|
vendor/jetpack-autoloader/class-autoloader-locator.php
+3
-3
12.3.2
→
16.3-beta
View file →
| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack-autoloader |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ12_3; | |
| 8 | +namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ16_3_beta\al6_0_1; | |
| 9 | 9 | |
| 10 | 10 | // phpcs:ignore |
| 11 | 11 | |
| 12 | 12 | use Automattic\Jetpack\Autoloader\AutoloadGenerator; |
| @@ -35,9 +35,9 @@ | ||
| 35 | 35 | /** |
| 36 | 36 | * Finds the path to the plugin with the latest autoloader. |
| 37 | 37 | * |
| 38 | 38 | * @param array $plugin_paths An array of plugin paths. |
| 39 | - * @param string $latest_version The latest version reference. | |
| 39 | + * @param string $latest_version The latest version reference. @phan-output-reference. | |
| 40 | 40 | * |
| 41 | 41 | * @return string|null |
| 42 | 42 | */ |
| 43 | 43 | public function find_latest_autoloader( $plugin_paths, &$latest_version ) { |
| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | $latest_plugin = null; |
| 45 | 45 | |
| 46 | 46 | foreach ( $plugin_paths as $plugin_path ) { |
| 47 | 47 | $version = $this->get_autoloader_version( $plugin_path ); |
| 48 | - if ( ! $this->version_selector->is_version_update_required( $latest_version, $version ) ) { | |
| 48 | + if ( ! $version || ! $this->version_selector->is_version_update_required( $latest_version, $version ) ) { | |
| 49 | 49 | continue; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | $latest_version = $version; |