@@ -232,7 +232,7 @@ class RouterService
232232 public function __construct ()
233233 {
234234 // To ignore the Notice instead of Isset on missing POST vars
235- error_reporting (E_ALL & ~E_NOTICE & ~E_WARNING );
235+ error_reporting (E_ALL & ~E_NOTICE & ~E_WARNING & ~ E_DEPRECATED );
236236
237237 if (isset ($ _POST ['auth_type ' ])) {
238238 $ _SESSION ['auth_service ' ] = $ _POST ['auth_type ' ];
@@ -284,7 +284,7 @@ public function router(): void
284284 } elseif ($ this ->ds_token_ok () == false ) {
285285 header ('Location: ' . $ GLOBALS ['app_url ' ] . '/index.php?page=select_api ' );
286286 } else {
287- error_reporting (E_ALL & ~E_NOTICE & ~E_WARNING );
287+ error_reporting (E_ALL & ~E_NOTICE & ~E_WARNING & ~ E_DEPRECATED );
288288 $ controller = "\Example\Controllers\Examples \\" . $ this ->getController ($ page );
289289 new $ controller ($ page );
290290 exit ();
@@ -347,13 +347,13 @@ public function router(): void
347347 // handle eg001 being listed in project root
348348 } elseif ($ page == 'eg001 ' ) {
349349 // To ignore the Notice instead of Isset on missing POST vars
350- error_reporting (E_ALL & ~E_NOTICE & ~E_WARNING );
350+ error_reporting (E_ALL & ~E_NOTICE & ~E_WARNING & ~ E_DEPRECATED );
351351 $ controller = '\Example \\' . $ this ->getController ($ page );
352352 new $ controller ($ page );
353353 exit ();
354354 } else {
355355 // To ignore the Notice instead of Isset on missing POST vars
356- error_reporting (E_ALL & ~E_NOTICE & ~E_WARNING );
356+ error_reporting (E_ALL & ~E_NOTICE & ~E_WARNING & ~ E_DEPRECATED );
357357 $ controller = '\Example\Controllers\Examples \\' . $ this ->getController ($ page );
358358 new $ controller ($ page );
359359 exit ();
0 commit comments