Skip to content

Conversation

@jiripudil
Copy link
Contributor

  • bug fix
  • BC break? no
  • doc PR: not necessary

Apparently Assert::type() supports an object instance in place of expected $type, but if such assertion fails, building a failure message produces either an Error: Object of class (...) could not be converted to string, or a rather misleading message if the expected type implements __toString.

@dg
Copy link
Member

dg commented Dec 3, 2020

Thanks

@dg dg merged commit 4b408f5 into nette:master Dec 3, 2020
@jiripudil jiripudil deleted the fix-assert-type branch December 3, 2020 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants