public function __construct($expectedClassname, $actualClassname) { $msg = "Cannot add configs of type '{$actualClassname}' into a list of type '{$expectedClassname}'"; parent::__construct(400, $msg, $msg); }