@@ -143,27 +143,27 @@ public static function getItemClass(): string
143143 public function driverPreWrap (ExtendedCacheItemInterface $ item , bool $ stringifyDate = false ): array
144144 {
145145 $ wrap = [
146- self ::DRIVER_KEY_WRAPPER_INDEX => $ item ->getKey (), // Stored but not really used, allow you to quickly identify the cache key
147- self ::DRIVER_DATA_WRAPPER_INDEX => $ item ->getRawValue (),
148- self ::DRIVER_TAGS_WRAPPER_INDEX => $ item ->getTags (),
146+ ExtendedCacheItemPoolInterface ::DRIVER_KEY_WRAPPER_INDEX => $ item ->getKey (), // Stored but not really used, allow you to quickly identify the cache key
147+ ExtendedCacheItemPoolInterface ::DRIVER_DATA_WRAPPER_INDEX => $ item ->getRawValue (),
148+ TaggableCacheItemPoolInterface ::DRIVER_TAGS_WRAPPER_INDEX => $ item ->getTags (),
149149 self ::DRIVER_EDATE_WRAPPER_INDEX => $ item ->getExpirationDate (),
150150 ];
151151
152152 if ($ this ->getConfig ()->isItemDetailedDate ()) {
153- $ wrap [self ::DRIVER_MDATE_WRAPPER_INDEX ] = new DateTime ();// Always on the latest date
153+ $ wrap [ExtendedCacheItemPoolInterface ::DRIVER_MDATE_WRAPPER_INDEX ] = new DateTime ();// Always on the latest date
154154 /**
155155 * If the creation date exists
156156 * reuse it else set a new Date
157157 */
158- $ wrap [self ::DRIVER_CDATE_WRAPPER_INDEX ] = $ item ->getCreationDate ();
158+ $ wrap [ExtendedCacheItemPoolInterface ::DRIVER_CDATE_WRAPPER_INDEX ] = $ item ->getCreationDate ();
159159 } else {
160- $ wrap [self ::DRIVER_MDATE_WRAPPER_INDEX ] = null ;
161- $ wrap [self ::DRIVER_CDATE_WRAPPER_INDEX ] = null ;
160+ $ wrap [ExtendedCacheItemPoolInterface ::DRIVER_MDATE_WRAPPER_INDEX ] = null ;
161+ $ wrap [ExtendedCacheItemPoolInterface ::DRIVER_CDATE_WRAPPER_INDEX ] = null ;
162162 }
163163
164164 if ($ stringifyDate ) {
165165 \array_walk ($ wrap , static function (mixed &$ value , string $ key ): void {
166- if ($ value instanceof DateTimeInterface && $ key !== self ::DRIVER_DATA_WRAPPER_INDEX ) {
166+ if ($ value instanceof DateTimeInterface && $ key !== ExtendedCacheItemPoolInterface ::DRIVER_DATA_WRAPPER_INDEX ) {
167167 $ value = $ value ->format (DateTimeInterface::W3C );
168168 }
169169 });
@@ -198,7 +198,7 @@ public function setConfig(ConfigurationOptionInterface $config): static
198198 */
199199 public function driverUnwrapData (array $ wrapper ): mixed
200200 {
201- return $ wrapper [self ::DRIVER_DATA_WRAPPER_INDEX ];
201+ return $ wrapper [ExtendedCacheItemPoolInterface ::DRIVER_DATA_WRAPPER_INDEX ];
202202 }
203203
204204 /**
0 commit comments