*/
public function __construct (FrameworkInterface $class, $code) {
// Add a message around the missing class
- $message = sprintf("[%s:%d] Objects of type <span id=\"exception_reason\">%s</span> are not allowed here.",
+ $message = sprintf("[%s:%d] Object is not allowed here.",
$class->__toString(),
- $this->getLine(),
- $class->getObjectDescription()
+ $this->getLine()
);
// Call parent constructor