phasync
ServerRequest / withoutAttribute

Method

ServerRequest::withoutAttribute

Return an instance that removes the specified derived request attribute.

Description#

public ServerRequest::withoutAttribute(
    $name
): ServerRequestInterface

This method allows removing a single derived request attribute as described in getAttributes().

This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that removes the attribute.

Parameters#

$name
The attribute name.

Return values#

ServerRequestInterface

See also#