Skip to content

Suggestion: narrowing the type of $resource #246

@asgraf

Description

@asgraf

Currently, the $resource variable is defined as a mixed type.
The mixed type is an alias for string|int|float|bool|null|array|object|callable|resource.
I'll frankly admit that I can't imagine a use-case in which $resource could take a value other than object
Therefore, I suggest that we narrow down the type of $resource down to object
(or even down to hypothetical \Authorization\Policy\ResourceInterface)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions