Skip to content

Commit

Permalink
FIX $view property type hinting
Browse files Browse the repository at this point in the history
BUMP CHANGELOG.md.
  • Loading branch information
sfneal committed Feb 4, 2021
1 parent c74906f commit f8d26ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ All notable changes to `view-models` will be documented in this file


## 1.1.0 - 2021-02-02
- fix issue with cache invalidation leading to rendered ViewModels not being deleted
- add improved test suite to that tests caching
- refactor several private AbstractViewModel methods to public facing methods
- bump min sfneal/redis-helpers version
- fix issue with cache invalidation leading to rendered ViewModels not being deleted


## 1.1.1 - 2021-02-04
- fix AbstractViewModel::$view property type hinting
5 changes: 2 additions & 3 deletions src/AbstractViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

abstract class AbstractViewModel extends ViewModel
{
// todo: add isCached method
// todo: make more properties private and add getters/setters

/**
Expand All @@ -20,7 +19,7 @@ abstract class AbstractViewModel extends ViewModel
public $ttl = null;

/**
* @var string Use manually declare redis_key (warning: can cause issues with caching)
* @var string|null Use manually declare redis_key (warning: can cause issues with caching)
*/
public $redis_key = null;

Expand All @@ -30,7 +29,7 @@ abstract class AbstractViewModel extends ViewModel
public $prefix;

/**
* @var null View name
* @var string|null View name
*/
public $view = null;

Expand Down

0 comments on commit f8d26ab

Please sign in to comment.