Skip to content

Commit

Permalink
Merge pull request #36 from ahi/patch-1
Browse files Browse the repository at this point in the history
Fix wrong error message.
  • Loading branch information
wick-ed committed Jul 10, 2015
2 parents f46ab0a + 67d3901 commit 2666634
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,12 @@
# Version 1.4.8

## Bugfixes

* Fix wrong classname in InstanceAssertion error message

## Features

* None

# Version 1.4.7

Expand Down
2 changes: 1 addition & 1 deletion build.default.properties
Expand Up @@ -8,7 +8,7 @@
#--------------------------------------------------------------------------------

# ---- Module Release Settings --------------------------------------------------
release.version = 1.4.7
release.version = 1.4.8

# ---- PHPCPD Settings ----------------------------------------------------------
# Directories
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/Assertions/InstanceAssertion.php
Expand Up @@ -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 . ')
);
}';
}
Expand Down

0 comments on commit 2666634

Please sign in to comment.