Skip to content

Commit

Permalink
Merge pull request #135 from callan-stretton/master
Browse files Browse the repository at this point in the history
Deprecated trim() fix
  • Loading branch information
lekoala authored Jul 8, 2022
2 parents e8dfdbd + 91c409f commit a9e5bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Aspects/CacheAfterCallAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CacheAfterCallAspect implements AfterCallAspect
public function afterCall($proxied, $method, $args, $result)
{
$message = (empty($result)) ? "Missed: {$args[0]}" : "Hit: {$args[0]}";
$result = preg_replace('/\s+/', ' ', trim($result));
$result = preg_replace('/\s+/', ' ', trim($result) ?? '');
$result = Convert::raw2att($result);
PartialCacheCollector::addTemplateCache(
$message,
Expand Down

0 comments on commit a9e5bdd

Please sign in to comment.