Skip to content

Commit

Permalink
Update PHPStan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Oct 1, 2024
1 parent 691dba6 commit f3af05c
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions .phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
'count' => 1,
'path' => __DIR__ . '/ajax/impact.php',
];
$ignoreErrors[] = [
// identifier: offsetAssign.dimType
'message' => '#^Cannot assign offset \'impactcontexts_id\' to string\\.$#',
'count' => 1,
'path' => __DIR__ . '/ajax/impact.php',
];
$ignoreErrors[] = [
// identifier: offsetAccess.notFound
'message' => '#^Offset \'node_id\' does not exist on string\\.$#',
Expand Down Expand Up @@ -547,6 +553,12 @@
'count' => 2,
'path' => __DIR__ . '/src/Auth.php',
];
$ignoreErrors[] = [
// identifier: if.alwaysTrue
'message' => '#^If condition is always true\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Auth.php',
];
$ignoreErrors[] = [
// identifier: return.type
'message' => '#^Method Auth\\:\\:login\\(\\) should return bool but returns int\\.$#',
Expand Down Expand Up @@ -964,7 +976,7 @@
$ignoreErrors[] = [
// identifier: if.alwaysFalse
'message' => '#^If condition is always false\\.$#',
'count' => 2,
'count' => 3,
'path' => __DIR__ . '/src/CommonDBTM.php',
];
$ignoreErrors[] = [
Expand Down Expand Up @@ -2239,6 +2251,30 @@
'count' => 2,
'path' => __DIR__ . '/src/Html.php',
];
$ignoreErrors[] = [
// identifier: offsetAccess.notFound
'message' => '#^Offset \'max\' does not exist on array\\{value\\: mixed, maybeempty\\: mixed, canedit\\: mixed, mindate\\: mixed, maxdate\\: mixed, mintime\\: mixed, maxtime\\: mixed, timestep\\: mixed, \\.\\.\\.\\}\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Html.php',
];
$ignoreErrors[] = [
// identifier: empty.offset
'message' => '#^Offset \'max\' on array\\{value\\: mixed, maybeempty\\: mixed, canedit\\: mixed, mindate\\: mixed, maxdate\\: mixed, mintime\\: mixed, maxtime\\: mixed, timestep\\: mixed, \\.\\.\\.\\} in empty\\(\\) does not exist\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Html.php',
];
$ignoreErrors[] = [
// identifier: offsetAccess.notFound
'message' => '#^Offset \'min\' does not exist on array\\{value\\: mixed, maybeempty\\: mixed, canedit\\: mixed, mindate\\: mixed, maxdate\\: mixed, mintime\\: mixed, maxtime\\: mixed, timestep\\: mixed, \\.\\.\\.\\}\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Html.php',
];
$ignoreErrors[] = [
// identifier: empty.offset
'message' => '#^Offset \'min\' on array\\{value\\: mixed, maybeempty\\: mixed, canedit\\: mixed, mindate\\: mixed, maxdate\\: mixed, mintime\\: mixed, maxtime\\: mixed, timestep\\: mixed, \\.\\.\\.\\} in empty\\(\\) does not exist\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Html.php',
];
$ignoreErrors[] = [
// identifier: deadCode.unreachable
'message' => '#^Unreachable statement \\- code above always terminates\\.$#',
Expand Down Expand Up @@ -3357,7 +3393,7 @@
];
$ignoreErrors[] = [
// identifier: isset.offset
'message' => '#^Offset 2 on array\\{array\\<int, string\\>, array\\<int, non\\-empty\\-string\\>, array\\<int, numeric\\-string\\>, array\\<int, non\\-empty\\-string\\>\\} in isset\\(\\) always exists and is not nullable\\.$#',
'message' => '#^Offset 2 on array\\{array\\<int, string\\>, array\\<int, \'"\'\\|\'\\\\\'\'\\>, array\\<int, numeric\\-string\\>, array\\<int, \'"\'\\|\'\\\\\'\'\\>\\} in isset\\(\\) always exists and is not nullable\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/NotificationEventMailing.php',
];
Expand Down

0 comments on commit f3af05c

Please sign in to comment.