Skip to content

Commit

Permalink
Cast to int for filterMin/Max in NameFilterIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuf authored and sebastianbergmann committed May 10, 2020
1 parent 94821de commit 5cb42b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .psalm/baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,6 @@
<code>$afterClassMethod</code>
</PossiblyUndefinedVariable>
</file>
<file src="src/Runner/Filter/NameFilterIterator.php">
<InvalidPropertyAssignmentValue occurrences="2">
<code>$matches[2]</code>
<code>$matches[3]</code>
</InvalidPropertyAssignmentValue>
</file>
<file src="src/Runner/PhptTestCase.php">
<PossiblyInvalidArgument occurrences="1">
<code>$sections['FILEEOF']</code>
Expand Down
4 changes: 2 additions & 2 deletions src/Runner/Filter/NameFilterIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ private function setFilter(string $filter): void
$matches[1]
);

$this->filterMin = $matches[2];
$this->filterMax = $matches[3];
$this->filterMin = (int) $matches[2];
$this->filterMax = (int) $matches[3];
} else {
$filter = \sprintf(
'%s.*with data set #%s$',
Expand Down

0 comments on commit 5cb42b0

Please sign in to comment.