Skip to content

Commit 2399ca4

Browse files
committed
fix build
1 parent 20a5164 commit 2399ca4

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

build/ignore-by-php-version.neon.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
$includes[] = __DIR__ . '/readonly-property.neon';
1212
}
1313

14+
if (PHP_VERSION_ID >= 80200) {
15+
$includes[] = __DIR__ . '/never-assigned-true-false.neon';
16+
}
17+
1418
if (PHP_VERSION_ID >= 70400) {
1519
$includes[] = __DIR__ . '/ignore-gte-php7.4-errors.neon';
1620
}

build/never-assigned-true-false.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
identifier: property.unusedType
5+
message: '#\(bool\) is never assigned (false|true) so it can be removed from the property type#'
6+
path: ../tests/PHPStan/*RuleTest.php

build/phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ parameters:
115115
count: 1
116116
path: ../src/Diagnose/PHPStanDiagnoseExtension.php
117117
- '#^Short ternary operator is not allowed#'
118+
118119
reportStaticMethodSignatures: true
119120
tmpDir: %rootDir%/tmp
120121
stubFiles:

0 commit comments

Comments
 (0)