Skip to content

Commit

Permalink
[TASK] Fix reported phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Sep 5, 2024
1 parent f106e44 commit 0f4f231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/AssetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ protected function copyReferencedFilesAndReplacePaths(
if (false === strpos($match, ':') && !preg_match('/url\\s*\\(/i', $match)) {
$checksum = md5($originalDirectory . $match);
if (0 < preg_match('/([^\?#]+)(.+)?/', $match, $items)) {
$path = $items[1];
$path = $items[1] ?? '';
$suffix = $items[2] ?? '';
} else {
$path = $match;
Expand Down
1 change: 1 addition & 0 deletions Classes/View/UncacheTemplateView.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ protected function renderPartialUncached(
'parsedTemplate' => null,
'renderingContext' => $renderingContext,
];
/** @var string $rendered */
$rendered = $this->renderPartial($partial, $section, $arguments);
array_pop($this->renderingStack);
return $rendered;
Expand Down

0 comments on commit 0f4f231

Please sign in to comment.