Browse Source

Mention how one can disable deprecation warnings in error mesage.

ADmad 8 years ago
parent
commit
e13a0955c7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Core/functions.php

+ 3 - 1
src/Core/functions.php

@@ -295,7 +295,9 @@ if (!function_exists('deprecationWarning')) {
             $frame += ['file' => '[internal]', 'line' => '??'];
 
             $message = sprintf(
-                '%s - %s, line: %s',
+                '%s - %s, line: %s' . "\n" .
+                ' You can disable deprecation warnings by setting `Error.errorLevel` to' .
+                ' `E_ALL & ~E_USER_DEPRECATED` in your config/app.php.',
                 $message,
                 $frame['file'],
                 $frame['line']