PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/class-yoast-network-settings-api.php +2 -4 18.428.5 View file →
@@ -26,9 +26,9 @@
26 26
27 27 /**
28 28 * The singleton instance of this class.
29 29 *
30 - * @var Yoast_Network_Settings_API
30 + * @var Yoast_Network_Settings_API|null
31 31 */
32 32 private static $instance = null;
33 33
34 34 /**
@@ -154,11 +154,9 @@
154 154 * @return Yoast_Network_Settings_API The singleton instance.
155 155 */
156 156 public static function get() {
157 157
158 - if ( self::$instance === null ) {
159 - self::$instance = new self();
160 - }
158 + self::$instance ??= new self();
161 159
162 160 return self::$instance;
163 161 }
164 162 }