Skip to content

Commit 2783230

Browse files
staabmsebastianbergmann
authored andcommitted
Narrow types
1 parent 42e47fc commit 2783230

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Framework/TestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function build(ReflectionClass $theClass, string $methodName, array $grou
7777
* @param non-empty-string $methodName
7878
* @param class-string<TestCase> $className
7979
* @param array<list<mixed>> $data
80-
* @param array{backupGlobals: ?bool, backupGlobalsExcludeList: list<string>, backupStaticProperties: ?bool, backupStaticPropertiesExcludeList: array<string,list<string>>} $backupSettings
80+
* @param array{backupGlobals: ?true, backupGlobalsExcludeList: list<string>, backupStaticProperties: ?true, backupStaticPropertiesExcludeList: array<string,list<string>>} $backupSettings
8181
* @param list<non-empty-string> $groups
8282
*/
8383
private function buildDataProviderTestSuite(string $methodName, string $className, array $data, bool $runTestInSeparateProcess, ?bool $preserveGlobalState, bool $runClassInSeparateProcess, array $backupSettings, array $groups): DataProviderTestSuite
@@ -111,7 +111,7 @@ private function buildDataProviderTestSuite(string $methodName, string $classNam
111111
}
112112

113113
/**
114-
* @param array{backupGlobals: ?bool, backupGlobalsExcludeList: list<string>, backupStaticProperties: ?bool, backupStaticPropertiesExcludeList: array<string,list<string>>} $backupSettings
114+
* @param array{backupGlobals: ?true, backupGlobalsExcludeList: list<string>, backupStaticProperties: ?true, backupStaticPropertiesExcludeList: array<string,list<string>>} $backupSettings
115115
*/
116116
private function configureTestCase(TestCase $test, bool $runTestInSeparateProcess, ?bool $preserveGlobalState, bool $runClassInSeparateProcess, array $backupSettings): void
117117
{
@@ -148,7 +148,7 @@ private function configureTestCase(TestCase $test, bool $runTestInSeparateProces
148148
* @param class-string<TestCase> $className
149149
* @param non-empty-string $methodName
150150
*
151-
* @return array{backupGlobals: ?bool, backupGlobalsExcludeList: list<string>, backupStaticProperties: ?bool, backupStaticPropertiesExcludeList: array<string,list<string>>}
151+
* @return array{backupGlobals: ?true, backupGlobalsExcludeList: list<string>, backupStaticProperties: ?true, backupStaticPropertiesExcludeList: array<string,list<string>>}
152152
*/
153153
private function backupSettings(string $className, string $methodName): array
154154
{

0 commit comments

Comments
 (0)