diff --git a/tests/CoreStubsTest.php b/tests/CoreStubsTest.php index 358074130..5a60a348b 100644 --- a/tests/CoreStubsTest.php +++ b/tests/CoreStubsTest.php @@ -34,7 +34,7 @@ class CoreStubsTest extends TestCase 'php_version' => '8.0', ]; yield 'Iterating over \DatePeriod (#5954) PHP7 Traversable' => [ - ' ' '7.3', ]; yield 'Iterating over \DatePeriod (#5954) PHP8 IteratorAggregate' => [ - ' ' '8.0', ]; yield 'Iterating over \DatePeriod (#5954), ISO string' => [ - ' ' '8.0', ]; yield 'DatePeriod implements only Traversable on PHP 7' => [ - ' ' '7.3', ]; yield 'DatePeriod implements IteratorAggregate on PHP 8' => [ - ' ' + * @return array */ public function providerValidCodeParse(): array { return [ 'addThrowsAnnotationToFunction' => [ - ' ' ' '7.4', + 'issues_to_fix' => ['MissingThrowsDocblock'], + 'safe_types' => true, ], 'addMultipleThrowsAnnotationToFunction' => [ - ' ' ' '7.4', + 'issues_to_fix' => ['MissingThrowsDocblock'], + 'safe_types' => true, ], 'preservesExistingThrowsAnnotationToFunction' => [ - ' ' ' '7.4', + 'issues_to_fix' => ['MissingThrowsDocblock'], + 'safe_types' => true, ], 'doesNotAddDuplicateThrows' => [ - ' ' ' '7.4', + 'issues_to_fix' => ['MissingThrowsDocblock'], + 'safe_types' => true, ], 'addThrowsAnnotationToFunctionInNamespace' => [ - ' ' ' '7.4', + 'issues_to_fix' => ['MissingThrowsDocblock'], + 'safe_types' => true, ], 'addThrowsAnnotationToFunctionFromFunctionFromOtherNamespace' => [ - ' ' ' '7.4', + 'issues_to_fix' => ['MissingThrowsDocblock'], + 'safe_types' => true, ], 'addThrowsAnnotationAccountsForUseStatements' => [ - ' ' ' '7.4', + 'issues_to_fix' => ['MissingThrowsDocblock'], + 'safe_types' => true, ], ]; } diff --git a/tests/ReturnTypeProvider/ArrayColumnTest.php b/tests/ReturnTypeProvider/ArrayColumnTest.php index 7be2a1ba0..ea6a8d604 100644 --- a/tests/ReturnTypeProvider/ArrayColumnTest.php +++ b/tests/ReturnTypeProvider/ArrayColumnTest.php @@ -65,7 +65,7 @@ class ArrayColumnTest extends TestCase ]; yield 'arrayColumnWithObjectsAndColumnNameNull' => [ - ' ' [ - ' ' [ - ' ' [ - ' ' $instances */ @@ -129,7 +129,7 @@ class ArrayColumnTest extends TestCase ]; yield 'arrayColumnWithListOfArrays' => [ - ' ' $arrays */ @@ -144,7 +144,7 @@ class ArrayColumnTest extends TestCase public function providerInvalidCodeParse(): iterable { yield 'arrayColumnWithArrayAndColumnNameNull' => [ - ' ' $arrays */ $arrays = []; foreach (array_column($arrays, null, "name") as $array) { diff --git a/tests/ReturnTypeProvider/MinMaxReturnTypeProviderTest.php b/tests/ReturnTypeProvider/MinMaxReturnTypeProviderTest.php index 1bbdff97d..da67246e2 100644 --- a/tests/ReturnTypeProvider/MinMaxReturnTypeProviderTest.php +++ b/tests/ReturnTypeProvider/MinMaxReturnTypeProviderTest.php @@ -12,27 +12,27 @@ class MinMaxReturnTypeProviderTest extends TestCase public function providerValidCodeParse(): iterable { yield 'literalInt' => [ - ' ' [ '$min' => 'int', '$max' => 'int', ], ]; yield 'nonInt' => [ - ' ' [ '$min' => 'string', '$max' => 'string', ], ]; yield 'maxIntRange' => [ - ' ' $v) { @@ -44,7 +44,7 @@ class MinMaxReturnTypeProviderTest extends TestCase $min = min($h0, $h1); $max = max($h0, $h1); ', - [ + 'assertions' => [ '$min' => 'int<0, max>', '$max' => 'int<0, max>', ],