Skip to content

Commit 9cc3838

Browse files
Fix issues identified by Psalm
1 parent 3203df5 commit 9cc3838

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

.psalm/baseline.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@
2626
</UndefinedConstant>
2727
</file>
2828
<file src="src/Node/AbstractNode.php">
29-
<InvalidReturnStatement occurrences="7"/>
30-
<InvalidReturnType occurrences="7">
31-
<code>int|string</code>
32-
<code>int|string</code>
33-
<code>int|string</code>
34-
<code>int|string</code>
35-
<code>int|string</code>
36-
<code>int|string</code>
37-
<code>int|string</code>
38-
</InvalidReturnType>
3929
<PossiblyNullPropertyAssignmentValue occurrences="1">
4030
<code>$parent</code>
4131
</PossiblyNullPropertyAssignmentValue>

src/Node/AbstractNode.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function getParent(): ?self
113113
/**
114114
* Returns the percentage of classes that has been tested.
115115
*
116-
* @return int|string
116+
* @return float|int|string
117117
*/
118118
public function getTestedClassesPercent(bool $asString = true)
119119
{
@@ -127,7 +127,7 @@ public function getTestedClassesPercent(bool $asString = true)
127127
/**
128128
* Returns the percentage of traits that has been tested.
129129
*
130-
* @return int|string
130+
* @return float|int|string
131131
*/
132132
public function getTestedTraitsPercent(bool $asString = true)
133133
{
@@ -141,7 +141,7 @@ public function getTestedTraitsPercent(bool $asString = true)
141141
/**
142142
* Returns the percentage of classes and traits that has been tested.
143143
*
144-
* @return int|string
144+
* @return float|int|string
145145
*/
146146
public function getTestedClassesAndTraitsPercent(bool $asString = true)
147147
{
@@ -155,7 +155,7 @@ public function getTestedClassesAndTraitsPercent(bool $asString = true)
155155
/**
156156
* Returns the percentage of functions that has been tested.
157157
*
158-
* @return int|string
158+
* @return float|int|string
159159
*/
160160
public function getTestedFunctionsPercent(bool $asString = true)
161161
{
@@ -169,7 +169,7 @@ public function getTestedFunctionsPercent(bool $asString = true)
169169
/**
170170
* Returns the percentage of methods that has been tested.
171171
*
172-
* @return int|string
172+
* @return float|int|string
173173
*/
174174
public function getTestedMethodsPercent(bool $asString = true)
175175
{
@@ -183,7 +183,7 @@ public function getTestedMethodsPercent(bool $asString = true)
183183
/**
184184
* Returns the percentage of functions and methods that has been tested.
185185
*
186-
* @return int|string
186+
* @return float|int|string
187187
*/
188188
public function getTestedFunctionsAndMethodsPercent(bool $asString = true)
189189
{
@@ -197,7 +197,7 @@ public function getTestedFunctionsAndMethodsPercent(bool $asString = true)
197197
/**
198198
* Returns the percentage of executed lines.
199199
*
200-
* @return int|string
200+
* @return float|int|string
201201
*/
202202
public function getLineExecutedPercent(bool $asString = true)
203203
{

0 commit comments

Comments
 (0)