Remove risky fix on PHPCsFixer + fix bad command interpretation

This commit is contained in:
osaajani 2021-02-23 00:40:59 +01:00
parent 3b662c1153
commit 3f84622cbe
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ namespace controllers\internals;
//Check for user
$internal_user = new \controllers\internals\User($this->bdd);
$user = $internal_user->check_credentials($decode_message['login'], $decode_message['password']);
if (!$user || $user['id'] !== $id_user)
if (!$user || (int) $user['id'] !== $id_user)
{
return false;
}

View File

@ -25,7 +25,7 @@ $config = PhpCsFixer\Config::create()
'@PHP56Migration' => true,
'@PHPUnit60Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PhpCsFixer:risky' => false,
'header_comment' => ['header' => $header],
'list_syntax' => ['syntax' => 'long'],
'array_syntax' => ['syntax' => 'short'],