Skip to content

Commit 32ba3b3

Browse files
committed
Merge branch 2.2.x into 2.3.x
2 parents b416a8c + 9c49ae3 commit 32ba3b3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
} else {
77
$includes[] = __DIR__ . '/baseline-pre-8.0.neon';
88
}
9-
if (PHP_VERSION_ID >= 80100) {
10-
$includes[] = __DIR__ . '/../vendor/shipmonk/dead-code-detector/rules.neon';
11-
} else {
9+
if (PHP_VERSION_ID < 80100) {
1210
$includes[] = __DIR__ . '/enums.neon';
1311
$includes[] = __DIR__ . '/readonly-property.neon';
1412
$includes[] = __DIR__ . '/turbo-declaration-generator-pre-8.1.neon';
1513
}
1614

15+
// PHP 8.1's serialize() does not trim its buffer, so the rule's cache keys cost 4 KB each
16+
if (PHP_VERSION_ID >= 80200) {
17+
$includes[] = __DIR__ . '/../vendor/shipmonk/dead-code-detector/rules.neon';
18+
}
19+
1720
if (PHP_VERSION_ID >= 70400) {
1821
$includes[] = __DIR__ . '/ignore-gte-php7.4-errors.neon';
1922
}

0 commit comments

Comments
 (0)