Skip to content

Commit

Permalink
Merge pull request #609 from doctrine/phpstan212
Browse files Browse the repository at this point in the history
Update PHPStan to 1.12
  • Loading branch information
SenseException authored Sep 11, 2024
2 parents 716adbc + 395f5e7 commit 87ccd96
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"doctrine/coding-standard": "^12.0",
"mikey179/vfsstream": "^1.6",
"nunomaduro/mock-final-classes": "^1.2",
"phpstan/phpstan": "^1.11",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpstan/phpstan-phpunit": "^1.4",
"phpstan/phpstan-strict-rules": "^1.6",
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

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

4 changes: 3 additions & 1 deletion lib/Docs/RST/RSTPostBuildProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ private function processHtmlFile(
string $contents,
): string {
// parse out the source file that generated this file
preg_match('/<p>{{ DOCS_SOURCE_PATH : (.*) }}<\/p>/', $contents, $match);
$result = preg_match('/<p>{{ DOCS_SOURCE_PATH : (.*) }}<\/p>/', $contents, $match);

assert($result === 1);

$docsSourcePath = $match[1];

Expand Down

0 comments on commit 87ccd96

Please sign in to comment.