Skip to content

Commit c2c86bd

Browse files
staabmsebastianbergmann
authored andcommitted
Type arrays in TestSuite
1 parent 7109bd6 commit c2c86bd

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.psalm/baseline.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.23.0@005e3184fb6de4350a873b9b8c4dc3cede9db762">
2+
<files psalm-version="5.23.1@8471a896ccea3526b26d082f4461eeea467f10a4">
33
<file src="src/Event/Dispatcher/DirectDispatcher.php">
44
<UndefinedInterfaceMethod>
55
<code><![CDATA[notify]]></code>
@@ -563,14 +563,6 @@
563563
<ArgumentTypeCoercion>
564564
<code><![CDATA[$this->name]]></code>
565565
</ArgumentTypeCoercion>
566-
<LessSpecificReturnStatement>
567-
<code><![CDATA[$this->providedTests]]></code>
568-
<code><![CDATA[$this->requiredTests]]></code>
569-
</LessSpecificReturnStatement>
570-
<MoreSpecificReturnType>
571-
<code><![CDATA[list<ExecutionOrderDependency>]]></code>
572-
<code><![CDATA[list<ExecutionOrderDependency>]]></code>
573-
</MoreSpecificReturnType>
574566
</file>
575567
<file src="src/Logging/JUnit/JunitXmlLogger.php">
576568
<InvalidPropertyAssignmentValue>

src/Framework/TestSuite.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,18 @@ class TestSuite implements IteratorAggregate, Reorderable, SelfDescribing, Test
6464
* @psalm-var array<string,list<Test>>
6565
*/
6666
private array $groups = [];
67+
/**
68+
* @psalm-var list<ExecutionOrderDependency>|null
69+
*/
6770
private ?array $requiredTests = null;
6871

6972
/**
7073
* @psalm-var list<Test>
7174
*/
7275
private array $tests = [];
76+
/**
77+
* @psalm-var list<ExecutionOrderDependency>|null
78+
*/
7379
private ?array $providedTests = null;
7480
private ?Factory $iteratorFilter = null;
7581

0 commit comments

Comments
 (0)