mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-05-06 08:16:26 +02:00
Remove risky fix on PHPCsFixer + fix bad command interpretation
This commit is contained in:
parent
3b662c1153
commit
3f84622cbe
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue