Skip to content

Commit b44c082

Browse files
committed
Baseline phpstan
1 parent 5836e3c commit b44c082

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

phpstan-baseline.neon

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,12 @@ parameters:
15301530
count: 2
15311531
path: tests/Unit/Controller/App/Reviews/ReviewsControllerTest.php
15321532

1533+
-
1534+
message: '#^Call to an undefined method PHPUnit\\Framework\\MockObject\\Builder\\InvocationStubber\:\:with\(\)\.$#'
1535+
identifier: method.notFound
1536+
count: 1
1537+
path: tests/Unit/Controller/App/User/Gitlab/UserGitlabOAuth2StartControllerTest.php
1538+
15331539
-
15341540
message: '#^Method DR\\Review\\Tests\\Unit\\Doctrine\\Type\\LineCoverageTypeTest\:\:testConvertToDatabaseValue\(\) has Doctrine\\DBAL\\Types\\ConversionException in PHPDoc @throws tag but it''s not thrown\.$#'
15351541
identifier: throws.unusedType
@@ -1746,6 +1752,18 @@ parameters:
17461752
count: 3
17471753
path: tests/Unit/Service/RuleProcessorTest.php
17481754

1755+
-
1756+
message: '#^Call to an undefined method PHPUnit\\Framework\\MockObject\\Builder\\InvocationStubber\:\:with\(\)\.$#'
1757+
identifier: method.notFound
1758+
count: 2
1759+
path: tests/Unit/Service/Webhook/WebhookExecutionServiceTest.php
1760+
1761+
-
1762+
message: '#^Cannot call method willReturn\(\) on mixed\.$#'
1763+
identifier: method.nonObject
1764+
count: 2
1765+
path: tests/Unit/Service/Webhook/WebhookExecutionServiceTest.php
1766+
17491767
-
17501768
message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#'
17511769
identifier: argument.type

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
requireCoverageMetadata="true"
66
failOnRisky="true"
77
failOnWarning="true"
8+
failOnDeprecation="true"
89
failOnIncomplete="true"
910
failOnEmptyTestSuite="true"
1011
beStrictAboutChangesToGlobalState="true"

0 commit comments

Comments
 (0)