Skip to content

Commit c22b52a

Browse files
committed
fix: remove void from test extension points
allow downstream suites to override public tests and hooks without native return declarations. fixes #123
1 parent 32abbb3 commit c22b52a

9 files changed

Lines changed: 141 additions & 136 deletions

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
->setRules([
1313
'@Symfony' => true,
1414
'protected_to_private' => false,
15+
'void_return' => false,
1516
])
1617
->setFinder($finder);

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ parameters:
22
level: 9
33
phpVersion: 80200
44
treatPhpDocTypesAsCertain: false
5+
ignoreErrors:
6+
-
7+
message: '#^Method Cache\\IntegrationTests\\(?:Tests\\)?(?:CachePoolTest|HierarchicalCachePoolTest|SimpleCacheTest|TaggableCachePoolTest)::(?:advanceTime|setupService|tearDownService|test[A-Z][A-Za-z0-9_]*)\(\) has no return type specified\.$#'
8+
identifier: missingType.return
59
paths:
610
- src
711
- tests

0 commit comments

Comments
 (0)