Skip to content

Commit

Permalink
fix php 8.1 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnick committed Aug 12, 2022
1 parent c302a3f commit e45b0e7
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 e45b0e7

Please sign in to comment.