File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -111,14 +111,13 @@ protected function setModuleValues():void{
111
111
/**
112
112
* Returns the prepared value for the given $M_TYPE
113
113
*
114
- * @return mixed|null return value depends on the output class, null if $moduleValues[$M_TYPE] doesn't exist
115
- * @throws \chillerlan\QRCode\Output\QRCodeOutputException
114
+ * @return mixed return value depends on the output class
115
+ * @throws \chillerlan\QRCode\Output\QRCodeOutputException if $moduleValues[$M_TYPE] doesn't exist
116
116
*/
117
117
protected function getModuleValue (int $ M_TYPE ){
118
118
119
119
if (!isset ($ this ->moduleValues [$ M_TYPE ])){
120
- return null ;
121
- # throw new QRCodeOutputException(sprintf('invalid M_TYPE: %024b', $M_TYPE));
120
+ throw new QRCodeOutputException (sprintf ('$M_TYPE %012b not found in module values map ' , $ M_TYPE ));
122
121
}
123
122
124
123
return $ this ->moduleValues [$ M_TYPE ];
You can’t perform that action at this time.
0 commit comments