diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2023-07-02 10:04:51 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2023-07-02 10:16:15 +0100 |
| commit | 92c80b1a703fce125736efe0dd8ef34e7ea34fdb (patch) | |
| tree | 7479457d4261da00b0fb100ae4dee07a33d45313 | |
| parent | 7a3804a2a6805b66ce446ee95ffb23b54c808bd7 (diff) | |
| download | webtrees-92c80b1a703fce125736efe0dd8ef34e7ea34fdb.tar.gz webtrees-92c80b1a703fce125736efe0dd8ef34e7ea34fdb.tar.bz2 webtrees-92c80b1a703fce125736efe0dd8ef34e7ea34fdb.zip | |
Update phpstan baseline
| -rw-r--r-- | phpstan-baseline.php | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 6de0c2f289..23a1d7cd91 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -739,6 +739,11 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/app/Http/RequestHandlers/ReportSetupPage.php', ]; $ignoreErrors[] = [ + 'message' => '#^Binary operation "\\+\\=" between string and array\\{type\\: \'text\', default\\: \'\', lookup\\: \'\', extra\\: \'\'\\} results in an error\\.$#', + 'count' => 1, + 'path' => __DIR__ . '/app/Http/RequestHandlers/ReportSetupPage.php', +]; +$ignoreErrors[] = [ 'message' => '#^Cannot call method url\\(\\) on Fisharebest\\\\Webtrees\\\\Family\\|null\\.$#', 'count' => 1, 'path' => __DIR__ . '/app/Http/RequestHandlers/SearchGeneralPage.php', @@ -944,11 +949,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/app/Individual.php', ]; $ignoreErrors[] = [ - 'message' => '#^Binary operation "\\." between non\\-falsy\\-string and array\\<int, string\\>\\|string results in an error\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/app/Individual.php', -]; -$ignoreErrors[] = [ 'message' => '#^Cannot call method spouseFamilies\\(\\) on Fisharebest\\\\Webtrees\\\\Individual\\|null\\.$#', 'count' => 1, 'path' => __DIR__ . '/app/Individual.php', @@ -2529,23 +2529,23 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/app/Report/ReportParserGenerate.php', ]; $ignoreErrors[] = [ - 'message' => '#^Cannot access offset 0 on array\\{0\\: int, 1\\: int, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#', - 'count' => 3, + 'message' => '#^Cannot access offset \\(float\\|int\\) on array\\<int, string\\>\\|false\\.$#', + 'count' => 13, 'path' => __DIR__ . '/app/Report/ReportParserGenerate.php', ]; $ignoreErrors[] = [ - 'message' => '#^Cannot access offset 1 on array\\{0\\: int, 1\\: int, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#', - 'count' => 3, + 'message' => '#^Cannot access offset \\(float\\|int\\<1, max\\>\\) on array\\<int, string\\>\\|false\\.$#', + 'count' => 1, 'path' => __DIR__ . '/app/Report/ReportParserGenerate.php', ]; $ignoreErrors[] = [ - 'message' => '#^Cannot access offset float\\|int on array\\<int, string\\>\\|false\\.$#', - 'count' => 13, + 'message' => '#^Cannot access offset 0 on array\\{0\\: int, 1\\: int, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#', + 'count' => 3, 'path' => __DIR__ . '/app/Report/ReportParserGenerate.php', ]; $ignoreErrors[] = [ - 'message' => '#^Cannot access offset float\\|int\\<1, max\\> on array\\<int, string\\>\\|false\\.$#', - 'count' => 1, + 'message' => '#^Cannot access offset 1 on array\\{0\\: int, 1\\: int, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#', + 'count' => 3, 'path' => __DIR__ . '/app/Report/ReportParserGenerate.php', ]; $ignoreErrors[] = [ @@ -2784,11 +2784,6 @@ $ignoreErrors[] = [ 'path' => __DIR__ . '/app/Report/ReportPdfText.php', ]; $ignoreErrors[] = [ - 'message' => '#^Method Fisharebest\\\\Webtrees\\\\Report\\\\ReportPdfText\\:\\:getWidth\\(\\) should return array\\{float, int, float\\} but returns array\\{array\\<float\\>\\|float\\|int, 1, int\\<0, max\\>\\}\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/app/Report/ReportPdfText.php', -]; -$ignoreErrors[] = [ 'message' => '#^Instanceof between Fisharebest\\\\Webtrees\\\\Report\\\\ReportBaseElement and Fisharebest\\\\Webtrees\\\\Report\\\\ReportPdfFootnote will always evaluate to false\\.$#', 'count' => 1, 'path' => __DIR__ . '/app/Report/ReportPdfTextBox.php', |
