Skip to content

Commit

Permalink
Merge pull request #69 from laminas/renovate/lock-file-maintenance
Browse files Browse the repository at this point in the history
Upgraded `vimeo/psalm`, removed some redundant type casts
  • Loading branch information
Ocramius authored Dec 19, 2022
2 parents 0fab529 + 263305c commit 04d2742
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 26 deletions.
110 changes: 86 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/PHPUnit/Controller/AbstractHttpControllerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -930,14 +930,14 @@ private function notQueryContentRegexAssertion($path, $pattern, $useXpath = fals
$node = $result->getNode(0);
$nodeValue = $node ? $node->nodeValue : null;

if ($nodeValue === null || preg_match($pattern, (string) $nodeValue)) {
if ($nodeValue === null || preg_match($pattern, $nodeValue)) {
throw new ExpectationFailedException($this->createFailureMessage(sprintf(
'Failed asserting node DENOTED BY %s DOES NOT CONTAIN content MATCHING "%s"',
$path,
$pattern
)));
}
$this->assertFalse((bool) preg_match($pattern, (string) $nodeValue));
$this->assertFalse((bool) preg_match($pattern, $nodeValue));
}

/**
Expand Down

0 comments on commit 04d2742

Please sign in to comment.