From 0d63b5d858c6f7f702703680c457a05bc705a865 Mon Sep 17 00:00:00 2001 From: Breki Tomasson Date: Mon, 24 Oct 2022 15:44:15 +0200 Subject: [PATCH] php-cs-fixer --- CHANGELOG.md | 4 ++++ src/HasTaggedCache.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1b8a31..7543043 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is looselyy based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v2.0.1] - Bugfix, 2022-10-24 + +- Changed: Made `bootHasTaggedCache` method static as intended. + ## [v2.0.0] - Code Overhaul, including breaking changes, 2022-10-24 - Added: New method `flushTaggedCacheOnAttributeUpdate(): array`, optionally overridden by the user. diff --git a/src/HasTaggedCache.php b/src/HasTaggedCache.php index 4d2eca5..d2d3301 100644 --- a/src/HasTaggedCache.php +++ b/src/HasTaggedCache.php @@ -12,7 +12,7 @@ trait HasTaggedCache { /** Set up the various hooks required for cache flushing etc. */ - public function bootHasTaggedCache(): void + public static function bootHasTaggedCache(): void { static::updated(static function (self $model): void { if ($model->isDirty($model->flushTaggedCacheOnAttributeUpdate())) {