Skip to content

Deprecation warning on WriteResponse::offsetGet($offset) return type #31

@wiggels

Description

@wiggels

When executing ->Session->Destroy($id); I get a depreciation warning for the return type. This should be easily fixed with #[\ReturnTypeWillChange] similar to what was done to the AbstractValuedResponse type.

Full warning:
Deprecated: Return type of DCarbone\PHPConsulAPI\WriteResponse::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/dcarbone/php-consul-api/src/WriteResponse.php on line 42

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions