| @@ -9,13 +9,14 @@ | ||
| 9 | 9 | * |
| 10 | 10 | * @since 1.0 |
| 11 | 11 | * @since 2.8 Renamed from PLL_Plugins_Compat to PLL_Integrations. |
| 12 | 12 | */ |
| 13 | +#[AllowDynamicProperties] | |
| 13 | 14 | class PLL_Integrations { |
| 14 | 15 | /** |
| 15 | 16 | * Singleton instance. |
| 16 | 17 | * |
| 17 | - * @var PLL_Integrations | |
| 18 | + * @var PLL_Integrations|null | |
| 18 | 19 | */ |
| 19 | 20 | protected static $instance; |
| 20 | 21 | |
| 21 | 22 | /** |
| @@ -24,9 +25,9 @@ | ||
| 24 | 25 | * @since 1.0 |
| 25 | 26 | */ |
| 26 | 27 | protected function __construct() { |
| 27 | 28 | // Loads external integrations. |
| 28 | - foreach ( glob( __DIR__ . '/*/load.php', GLOB_NOSORT ) as $load_script ) { // phpcs:ignore WordPressVIPMinimum.Variables.VariableAnalysis.UnusedVariable | |
| 29 | + foreach ( glob( __DIR__ . '/*/load.php', GLOB_NOSORT ) as $load_script ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable | |
| 29 | 30 | require_once $load_script; // phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.UsingVariable |
| 30 | 31 | } |
| 31 | 32 | } |
| 32 | 33 | |
| @@ -34,9 +35,9 @@ | ||
| 34 | 35 | * Access to the single instance of the class. |
| 35 | 36 | * |
| 36 | 37 | * @since 1.7 |
| 37 | 38 | * |
| 38 | - * @return object | |
| 39 | + * @return PLL_Integrations | |
| 39 | 40 | */ |
| 40 | 41 | public static function instance() { |
| 41 | 42 | if ( empty( self::$instance ) ) { |
| 42 | 43 | self::$instance = new self(); |