summaryrefslogtreecommitdiff
path: root/phpstan-baseline.neon
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-01-06 11:17:28 +0000
committerGreg Roach <greg@subaqua.co.uk>2025-01-06 12:47:39 +0000
commitcba20eb871932d4301cf65b62972e9fad19015ac (patch)
treecd01401993662b123d9c58cfb865f03a6e1b001e /phpstan-baseline.neon
parent24cb7547cb882ddc3e5b99cdff164831ef80290c (diff)
downloadwebtrees-cba20eb871932d4301cf65b62972e9fad19015ac.tar.gz
webtrees-cba20eb871932d4301cf65b62972e9fad19015ac.tar.bz2
webtrees-cba20eb871932d4301cf65b62972e9fad19015ac.zip
Add PhpService so we can mock/test calles to ini_get(), etc.
Diffstat (limited to 'phpstan-baseline.neon')
-rw-r--r--phpstan-baseline.neon60
1 files changed, 0 insertions, 60 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 67940f1007..afbffd7116 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -7153,12 +7153,6 @@ parameters:
path: app/Services/MediaFileService.php
-
- message: '#^Call to function is_float\(\) with int will always evaluate to false\.$#'
- identifier: function.impossibleType
- count: 1
- path: app/Services/MediaFileService.php
-
- -
message: '#^Cannot call method detach\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
@@ -7615,12 +7609,6 @@ parameters:
path: app/Services/SearchService.php
-
- message: '#^Cannot cast mixed to string\.$#'
- identifier: cast.string
- count: 1
- path: app/Services/ServerCheckService.php
-
- -
message: '#^Method Fisharebest\\Webtrees\\Services\\ServerCheckService\:\:serverErrors\(\) should return Illuminate\\Support\\Collection\<int, string\> but returns Illuminate\\Support\\Collection\<int, mixed\>\.$#'
identifier: return.type
count: 1
@@ -7633,24 +7621,12 @@ parameters:
path: app/Services/ServerCheckService.php
-
- message: '#^Parameter \#1 \$value of function e expects BackedEnum\|float\|Illuminate\\Contracts\\Support\\DeferringDisplayableValue\|Illuminate\\Contracts\\Support\\Htmlable\|int\|string\|null, mixed given\.$#'
- identifier: argument.type
- count: 1
- path: app/Services/ServerCheckService.php
-
- -
message: '#^Parameter \#1 \$version1 of function version_compare expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: app/Services/ServerCheckService.php
-
- message: '#^Parameter \#2 \$string of function explode expects string, mixed given\.$#'
- identifier: argument.type
- count: 1
- path: app/Services/ServerCheckService.php
-
- -
message: '#^Parameter \#2 \.\.\.\$args of static method Fisharebest\\Webtrees\\I18N\:\:translate\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
@@ -7669,12 +7645,6 @@ parameters:
path: app/Services/SiteLogsService.php
-
- message: '#^Cannot cast mixed to int\.$#'
- identifier: cast.int
- count: 1
- path: app/Services/TimeoutService.php
-
- -
message: '#^Parameter \#1 \$stream of function fclose expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
@@ -10649,33 +10619,3 @@ parameters:
identifier: argument.templateType
count: 1
path: tests/app/Services/ModuleServiceTest.php
-
- -
- message: '#^Call to an undefined method object\:\:iniGet\(\)\.$#'
- identifier: method.notFound
- count: 1
- path: tests/app/Services/TimeoutServiceTest.php
-
- -
- message: '#^Cannot call method method\(\) on object\|null\.$#'
- identifier: method.nonObject
- count: 3
- path: tests/app/Services/TimeoutServiceTest.php
-
- -
- message: '#^Cannot call method willReturn\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: tests/app/Services/TimeoutServiceTest.php
-
- -
- message: '#^Cannot call method with\(\) on mixed\.$#'
- identifier: method.nonObject
- count: 3
- path: tests/app/Services/TimeoutServiceTest.php
-
- -
- message: '#^Parameter \#1 \$option of function ini_get expects string, mixed given\.$#'
- identifier: argument.type
- count: 1
- path: tests/app/Services/TimeoutServiceTest.php