Skip to content

Error while using "&" and "|" at the same time #2806

@s-belichenko

Description

@s-belichenko

Example:

/**
     * Blah.
     *
     * @param string|int|null                    $jsonRpcId          Blah.
     * @param RequestIdGenerator&MockObject|null $requestIdGenerator Blah.
     * @param string                             $exceptedId         Blah.
     *
     * @dataProvider correctConstructProvider
     *
     * @throws \Throwable
     */

Errors:

phpcs: Expected 4 spaces after parameter type; 20 found

phpcs: Expected 7 spaces after parameter name; 10 found

phpcs: Doc comment for parameter &MockObject|null does not match actual variable name $requestIdGenerator

phpcs: Expected 1 spaces after parameter type; 0 found

phpcs: Parameter comment must start with a capital letter

phpcs: Expected 13 spaces after parameter type; 29 found

phpcs: Expected 6 spaces after parameter name; 9 found

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions