Skip to content

Commit

Permalink
Fix new phpstan errors after update
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseException committed Sep 10, 2024
1 parent 7dca6f6 commit 395f5e7
Showing 1 changed file with 3 additions and 1 deletion.
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 395f5e7

Please sign in to comment.