PluginProbe
Polylang / 3.3
Polylang v3.3
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | integrations/integrations.php +4 -3 2.83.3 View file →
@@ -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();