public function __construct($filename, $index) { $msg = "Config file '{$filename}': 'roles[{$index}].role' must be a string"; parent::__construct(400, $msg, $msg); }