From c848ac1b5657d77437c8c6ac199d42a538ddeb6a Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Tue, 7 Feb 2023 11:09:02 +0100 Subject: [PATCH] =?UTF-8?q?ContentHandler.php:=20${versionNo}=20=E2=86=92?= =?UTF-8?q?=20{$versionNo}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For PHP 8.2 https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dollar-brace-interpolation Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/vendor/ibexa/core/src/lib/Persistence/Cache/ContentHandler.php on line 134 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/vendor/ibexa/core/src/lib/Persistence/Cache/ContentHandler.php on line 241 --- src/lib/Persistence/Cache/ContentHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Persistence/Cache/ContentHandler.php b/src/lib/Persistence/Cache/ContentHandler.php index 5e9b28eebb..5938eef614 100644 --- a/src/lib/Persistence/Cache/ContentHandler.php +++ b/src/lib/Persistence/Cache/ContentHandler.php @@ -131,7 +131,7 @@ public function copy($contentId, $versionNo = null, $newOwnerId = null) */ public function load($contentId, $versionNo = null, array $translations = null) { - $keySuffix = $versionNo ? "-${versionNo}-" : '-'; + $keySuffix = $versionNo ? "-{$versionNo}-" : '-'; $keySuffix .= empty($translations) ? self::ALL_TRANSLATIONS_KEY : implode('|', $translations); return $this->getCacheValue( @@ -238,7 +238,7 @@ function () use ($remoteId) { */ public function loadVersionInfo($contentId, $versionNo = null) { - $keySuffix = $versionNo ? "-${versionNo}" : ''; + $keySuffix = $versionNo ? "-{$versionNo}" : ''; $cacheItem = $this->cache->getItem( $this->cacheIdentifierGenerator->generateKey( self::CONTENT_VERSION_INFO_IDENTIFIER,