Skip to content

Instantly share code, notes, and snippets.

@AronNovak
Created June 17, 2019 08:48
Show Gist options
  • Save AronNovak/33d0db8ea460ec5989c2d703cd3c8ad7 to your computer and use it in GitHub Desktop.
Save AronNovak/33d0db8ea460ec5989c2d703cd3c8ad7 to your computer and use it in GitHub Desktop.
diff --git a/includes/environment.inc b/includes/environment.inc
index a4717048..a2416424 100644
--- a/includes/environment.inc
+++ b/includes/environment.inc
@@ -18,7 +18,7 @@ use Webmozart\PathUtil\Path;
* Log PHP errors to the Drush log. This is in effect until Drupal's error
* handler takes over.
*/
-function drush_error_handler($errno, $message, $filename, $line, $context) {
+function drush_error_handler($errno, $message, $filename = NULL, $line = NULL, $context = NULL) {
// E_DEPRECATED was added in PHP 5.3. Drupal 6 will not fix all the
// deprecated errors, but suppresses them. So we suppress them as well.
if (defined('E_DEPRECATED')) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment