@@ -131,35 +131,25 @@ function decodeFromFileToObject($filePath, ?bool $isArray=false, int $depth=512,
131131 private static function catchErrors () {
132132 switch (json_last_error ()) {
133133 case JSON_ERROR_NONE :
134- dump ('CLEAN ' );
135134 // JSON is valid and no error has occurred.
136135 return ;
137136 case JSON_ERROR_DEPTH :
138- dump ('JSON_ERROR_DEPTH ' );
139137 throw new JsonMaxDepthException ();
140138 case JSON_ERROR_STATE_MISMATCH :
141- dump ('JSON_ERROR_STATE_MISMATCH ' );
142139 throw new JsonInvalidOrMalformedException ();
143140 case JSON_ERROR_CTRL_CHAR :
144- dump ('JSON_ERROR_CTRL_CHAR ' );
145141 throw new JsonControlCharacterException ();
146142 case JSON_ERROR_SYNTAX :
147- dump ('JSON_ERROR_SYNTAX ' );
148143 throw new JsonSyntaxErrorException ();
149144 case JSON_ERROR_UTF8 :
150- dump ('JSON_ERROR_UTF8 ' );
151145 throw new JsonMalformedUTF8Exception ();
152146 case JSON_ERROR_RECURSION :
153- dump ('JSON_ERROR_RECURSION ' );
154147 throw new JsonRecursiveReferenceException ();
155148 case JSON_ERROR_INF_OR_NAN :
156- dump ('JSON_ERROR_INF_OR_NAN ' );
157149 throw new JsonInfinityOrNanDetectedException ();
158150 case JSON_ERROR_UNSUPPORTED_TYPE :
159- dump ('JSON_ERROR_UNSUPPORTED_TYPE ' );
160151 throw new JsonUnsupportedTypeException ();
161152 default :
162- dump ('DEFAULT ' );
163153 throw new JsonException ();
164154 }
165155 }
0 commit comments