code: public function getMethod()
      {
          if (
              isset($_POST[$this->methodParam])
              // Never allow to downgrade request from WRITE methods (POST, PATCH, DELETE, etc)
              // to read methods (GET, HEAD, OPTIONS) for security reasons.
              && !in_array(strtoupper($_POST[$this->methodParam]), ['GET', 'HEAD', 'OPTIONS'], true)
          ) {
              return strtoupper($_POST[$this->methodParam]);
          }
  
          if ($this->headers->has('X-Http-Method-Override')) {
              return strtoupper($this->headers->get('X-Http-Method-Override'));
          }
  
          if (isset($_SERVER['REQUEST_METHOD'])) {
              return strtoupper($_SERVER['REQUEST_METHOD']);
          }
  
          return 'GET';
      }
docs: Returns the method of the current request (e.g. GET, POST, HEAD, PUT, PATCH, DELETE).
  @return string request method, such as GET, POST, HEAD, PUT, PATCH, DELETE.
  The value returned is turned into upper case.