Skip to content

Commit

Permalink
property_exists and variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Jun 11, 2022
1 parent f35a4a9 commit 59eb40c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/src/Updater/ConstrainChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ public function check(array $constraints)
}

// Check php_minimum
if (isset($constraints['phpMinimum']) && !$this->checkPhpMinimum($constraints['phpMinimum']))
if (isset($constraints['php_minimum']) && !$this->checkPhpMinimum($constraints['php_minimum']))
{
return false;
}

// Check supported databases
if (isset($constraints['supportedDatabases']) && !$this->checkSupportedDatabases($constraints['supportedDatabases']))
if (isset($constraints['supported_databases']) && !$this->checkSupportedDatabases($constraints['supported_databases']))
{
return false;
}

// Check stability
if (isset($constraints['stability']) && !$this->checkStability($constraints['stability']['tags']))
if (isset($constraints['tags']) && !$this->checkStability($constraints['tags']))
{
return false;
}
Expand Down Expand Up @@ -134,7 +134,7 @@ protected function checkSupportedDatabases(stdClass $supportedDatabases)
}

// Do we have an entry for the database?
if (\property_exists($dbType, $supportedDatabases))
if (\property_exists($supportedDatabases, $dbType))
{
$minimumVersion = $supportedDatabases[$dbType];

Expand Down

0 comments on commit 59eb40c

Please sign in to comment.