code: public function isResponsible($level, $message, $file = null, $line = null, array $context = [])
      {
          if (E_RECOVERABLE_ERROR != $level) {
              return false;
          }
  
          return (bool) preg_match('/Argument [0-9]+ passed to [a-zA-Z0-9_\\\\]+::[a-zA-Z0-9_]+\(\) must be an instance of [a-zA-Z0-9_\\\\]+, [a-zA-Z0-9_\\\\]+ given/', $message);
      }
docs: checks whether this error handler is responsible for the given error
  
  @param   int     $level    level of the raised error
  @param   string  $message  error message
  @param   string  $file     filename that the error was raised in
  @param   int     $line     line number the error was raised at
  @param   array   $context  array of every variable that existed in the scope the error was triggered in
  @return  bool    true if error handler is responsible, else false