diff --git a/CHANGELOG.md b/CHANGELOG.md index 609beac..0595141 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ This changelog references the relevant changes, bug and security fixes done. +## v0.3.3 (2016-11-26) + +### Fixes + +- Fixed log tests for Monlog v1.22 + +### Miscellaneous + +- Added support for PHP 7.1 ([#46](https://github.com/kraken-php/framework/pull/51)). + ## v0.3.2 (2016-10-13) ### Fixes diff --git a/src/Core/Core.php b/src/Core/Core.php index 0a3ebdb..64a8c88 100644 --- a/src/Core/Core.php +++ b/src/Core/Core.php @@ -14,7 +14,7 @@ class Core extends Container implements CoreInterface /** * @var string */ - const VERSION = '0.3.2'; + const VERSION = '0.3.3'; /** * @var string diff --git a/test/_Module/Log/LoggerTest.php b/test/_Module/Log/LoggerTest.php index c6cecc4..e905032 100644 --- a/test/_Module/Log/LoggerTest.php +++ b/test/_Module/Log/LoggerTest.php @@ -277,8 +277,9 @@ public function createMessage($level, $message, $context = []) { $sub = '%context.A%,%context.B%'; - foreach ($context as $key=>$val) + foreach ([ 'A', 'B' ] as $key) { + $val = isset($context[$key]) ? $context[$key] : ''; $sub = str_replace("%context.$key%", $val, $sub); } diff --git a/test/_Unit/Core/CoreTest.php b/test/_Unit/Core/CoreTest.php index d2b19af..91a467e 100644 --- a/test/_Unit/Core/CoreTest.php +++ b/test/_Unit/Core/CoreTest.php @@ -23,7 +23,7 @@ class CoreTest extends TUnit */ public function testCaseVersionConst_HasVersion() { - $this->assertSame('0.3.2', Core::VERSION); + $this->assertSame('0.3.3', Core::VERSION); } /**