Skip to content

Type error in Message->getPriority()  #86

Description

@bretislavstepan

getPriority has return type ?int but getHeader returns mixed|null (in my case numeric string '3').

return $this->getHeader('X-Priority');

Can I send a PR with a fix?

$priority = $this->getHeader('X-Priority');
return is_numeric($priority) ? (int) $priority : null;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions