Skip to content

Commit

Permalink
πŸ› FIX: PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
austinginder committed Sep 7, 2024
1 parent 9c4c6f3 commit 1921b71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/local-scripts/environment-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
}

// Converts --arguments into $arguments
parse_str( implode( '&', $args ) );
parse_str( implode( '&', $args ), $arguments );

$site = $args[0];
$site = array_keys($arguments)[0];

if ( empty( $site ) ) {
echo 'Error: Please specify a <site>.';
return;
}

if ( ctype_digit( $site ) ) {
if ( ctype_digit( $site ) || is_int( $site ) ) {
$site_id = $site;
} else {
$lookup = ( new CaptainCore\Sites )->where( [ "site" => $site ] );
Expand Down

0 comments on commit 1921b71

Please sign in to comment.