Skip to content

Commit 1da9c32

Browse files
committed
fix: resolve inconsistent PHPStan errors between local and CI environments
1 parent ff20d81 commit 1da9c32

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ parameters:
1919
- system/Commands/Generators/Views/*
2020
- system/Debug/Toolbar/Views/toolbar.tpl.php
2121
- system/Images/Handlers/GDHandler.php
22+
- system/Test/Mock/MockCommon.php
2223
- system/ThirdParty/*
2324
- system/Validation/Views/single.php
2425
- tests/system/View/Views/*
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# total 2 errors
2+
3+
parameters:
4+
ignoreErrors:
5+
-
6+
message: '#^Function is_cli invoked with 1 parameter, 0 required\.$#'
7+
count: 2
8+
path: ../../tests/system/Debug/ToolbarTest.php

utils/phpstan-baseline/loader.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# total 2635 errors
1+
# total 2637 errors
22

33
includes:
44
- argument.type.neon
5+
- arguments.count.neon
56
- assign.propertyType.neon
67
- booleanNot.exprNotBoolean.neon
78
- codeigniter.getReassignArray.neon

0 commit comments

Comments
 (0)