Remove risky fix on PHPCsFixer + fix bad command interpretation
This commit is contained in:
parent
3b662c1153
commit
3f84622cbe
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue