Skip to content

Commit eed5c70

Browse files
committed
fix: $cache should be protected
1 parent 5242874 commit eed5c70

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CHANGELOG-1.x.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
## [1.0.1] - 2020-08-30
10+
### Fixed
11+
- Make `BaseEnum::$cache` protected as it was left public.
12+
13+
## [1.0.0] - 2020-08-30
14+
### Added
15+
- Array and illuminate collection implementations
16+
17+
[Unreleased]: https://github.com/ekvedaras/php-enum/compare/v1.0.1...HEAD
18+
[1.0.1]: https://github.com/ekvedaras/php-enum/compare/v1.0.0...v1.0.1
19+
[1.0.0]: https://github.com/ekvedaras/php-enum/releases/tag/v1.0.0

src/BaseEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
abstract class BaseEnum implements JsonSerializable
1616
{
1717
/** @var iterable|iterable[] */
18-
public static $cache;
18+
protected static $cache;
1919

2020
/** @var int|string */
2121
protected $id;

0 commit comments

Comments
 (0)