Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Function with type hints are seen as ternaries #29

@BenjaVR

Description

@BenjaVR

Example:

<?php

function doSomething(?string $param): string {
    // ...
}

The ternary-max-length rule will fail because the function line has a ? followed by a :.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions