Skip to content

Commit

Permalink
Update psalm to 5.17
Browse files Browse the repository at this point in the history
  • Loading branch information
kassner committed Dec 12, 2023
1 parent 8159625 commit 2966220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpcpd" version="^6.0.3" installed="6.0.3" location="./tools/phpcpd" copy="false"/>
<phar name="psalm" version="^5.0.0-beta1" installed="5.0.0-beta1" location="./tools/psalm" copy="false"/>
<phar name="psalm" version="5.17" installed="5.17.0" location="./tools/psalm" copy="false"/>
<phar name="php-cs-fixer" version="^3.11.0" installed="3.11.0" location="./tools/php-cs-fixer" copy="false"/>
<phar name="phpmd" version="^2.13.0" installed="2.13.0" location="./tools/phpmd" copy="false"/>
<phar name="phpunit" version="^9.5.24" installed="9.5.24" location="./tools/phpunit" copy="false"/>
Expand Down
3 changes: 2 additions & 1 deletion src/LogParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class LogParser
/** @var string */
private $format;

/** @var string */
/** @var non-empty-string */
private $pcreFormat;

/** @var string[] */
Expand Down Expand Up @@ -95,6 +95,7 @@ private function updatePCREPattern(): void
$expr = "#^{$this->format}$#";

foreach ($this->patterns as $pattern => $replace) {
/** @var non-empty-string */
$expr = preg_replace("/{$pattern}/", $replace, $expr);
}

Expand Down

0 comments on commit 2966220

Please sign in to comment.