Skip to content

Commit

Permalink
php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
BrekiTomasson committed Oct 24, 2022
1 parent d3ae391 commit 0d63b5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/HasTaggedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down

0 comments on commit 0d63b5d

Please sign in to comment.