@@ -89,7 +89,9 @@ public static function deactivateForSingleSite(): void {
8989 S3 \S3Options::deactivateForSingleSite ();
9090 }
9191
92- public static function deactivate ( bool $ network_wide = null ): void {
92+ public static function deactivate (
93+ bool $ network_wide = false ,
94+ ): void {
9395 if ( $ network_wide ) {
9496 global $ wpdb ;
9597
@@ -127,7 +129,9 @@ public static function activateForSingleSite(): void {
127129 S3 \S3Options::activateForSingleSite ();
128130 }
129131
130- public static function activate ( bool $ network_wide = null ): void {
132+ public static function activate (
133+ bool $ network_wide = false ,
134+ ): void {
131135 if ( $ network_wide ) {
132136 global $ wpdb ;
133137
@@ -505,8 +509,8 @@ public static function enqueueJobs( ?int $post_id = null ): void {
505509 }
506510
507511 public static function adminSetAddonState (
508- string $ addon_slug = null ,
509- bool $ enabled = null ,
512+ ? string $ addon_slug = null ,
513+ bool $ enabled = false ,
510514 ): void {
511515 if ( defined ( 'WP_CLI ' ) ) {
512516 if ( ! $ addon_slug ) {
@@ -555,7 +559,9 @@ public static function adminSetAddonState(
555559 }
556560 }
557561
558- public static function adminToggleAddon ( string $ addon_slug = null ): void {
562+ public static function adminToggleAddon (
563+ ?string $ addon_slug = null ,
564+ ): void {
559565 if ( defined ( 'WP_CLI ' ) ) {
560566 if ( ! $ addon_slug ) {
561567 throw WsLog::ex (
@@ -683,7 +689,7 @@ public static function runHeadless(): void {
683689
684690 public static function invalidateSingleURLCache (
685691 int $ post_id = 0 ,
686- WP_Post $ post = null
692+ ? WP_Post $ post = null ,
687693 ): void {
688694 if ( ! $ post ) {
689695 return ;
0 commit comments