Skip to content

Commit

Permalink
Fix API error with php_compatibility_check
Browse files Browse the repository at this point in the history
There's no need to send bad JSON if we want to use the default php version for the compatibility check.
  • Loading branch information
frimro committed Aug 15, 2024
1 parent b61c894 commit c1ed92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/api/container.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static function reset_shadow( $shadow ) {
}

public static function php_compatibility_check( $version = null ) {
$data = $version === null ? [] : ['php' => $version];
$data = $version === null ? null : ['php' => $version];
return self::post('/wordpress/php-compatibility-check/', $data);
}

Expand Down

0 comments on commit c1ed92d

Please sign in to comment.