diff --git a/CHANGELOG.md b/CHANGELOG.md index 332b1e0..3672bd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# Version 1.4.8 + +## Bugfixes + +* Fix wrong classname in InstanceAssertion error message + +## Features + +* None # Version 1.4.7 diff --git a/build.default.properties b/build.default.properties index 53a4cf3..cc24f6d 100644 --- a/build.default.properties +++ b/build.default.properties @@ -8,7 +8,7 @@ #-------------------------------------------------------------------------------- # ---- Module Release Settings -------------------------------------------------- -release.version = 1.4.7 +release.version = 1.4.8 # ---- PHPCPD Settings ---------------------------------------------------------- # Directories diff --git a/src/Entities/Assertions/InstanceAssertion.php b/src/Entities/Assertions/InstanceAssertion.php index 9424423..43ba023 100644 --- a/src/Entities/Assertions/InstanceAssertion.php +++ b/src/Entities/Assertions/InstanceAssertion.php @@ -109,7 +109,7 @@ public function toCode() \'%s must be an instance of %s, %s found instead.\', \'' . str_replace(ReservedKeywords::RESULT, 'The returned object', $this->operand) . '\', \'' . $this->class . '\', - get_class(' . $this->operand . ') + ' . $this->operand . ' === null ? \'null\' : get_class(' . $this->operand . ') ); }'; }