Welcome Guest, Not a member yet? Register   Sign In
source code says Request::getMethod() is deprecated, what to use?
#1

(This post was last modified: 02-25-2021, 06:04 PM by sneakyimp.)

The source code says Request::getMethod() is deprecated. What should we use instead?
PHP Code:
    /**
     * Get the request method.
     *
     * @param boolean $upper Whether to return in upper or lower case.
     *
     * @return string
     *
     * @deprecated The $upper functionality will be removed and this will revert to its PSR-7 equivalent
     */
    
public function getMethod(bool $upper false): string
    
{
        return (
$upper) ? strtoupper($this->method) : strtolower($this->method);
    } 
Reply


Messages In This Thread
source code says Request::getMethod() is deprecated, what to use? - by sneakyimp - 02-25-2021, 05:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB