Skip to content

Commit

Permalink
Remove fifth argument of error handler. (#3712)
Browse files Browse the repository at this point in the history
This argument is optional in all versions of PHP and deprecated
since PHP 7.2.
  • Loading branch information
bangpound authored and weitzman committed Oct 3, 2018
1 parent 65f2f32 commit 2407c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/environment.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,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, $line) {
// 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')) {
Expand Down

0 comments on commit 2407c68

Please sign in to comment.