Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 14, 2024
1 parent f606bc1 commit d9d598c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Runner/TestSuiteSorter.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ private function cmpSize(Test $a, Test $b): int
* 3. If the test has dependencies but none left to do: mark done, start again from the top
* 4. When we reach the end add any leftover tests to the end. These will be marked 'skipped' during execution.
*
* @param array<DataProviderTestSuite|TestCase> $tests
* @param array<TestCase> $tests
*
* @return array<DataProviderTestSuite|TestCase>
* @return array<TestCase>
*/
private function resolveDependencies(array $tests): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/TextUI/Output/TestDox/ResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private function prefixLines(string $prefix, string $message): string
PHP_EOL,
array_map(
static fn (string $line) => ' ' . $prefix . ($line ? ' ' . $line : ''),
preg_split('/\r\n|\r|\n/', $message),
preg_split('/\r\n|\r|\n/', $message) ?: [],
),
);
}
Expand Down

0 comments on commit d9d598c

Please sign in to comment.