Skip to content
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

Open
BenjaVR opened this issue Aug 20, 2021 · 0 comments
Open

Function with type hints are seen as ternaries #29

BenjaVR opened this issue Aug 20, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@BenjaVR
Copy link

BenjaVR commented Aug 20, 2021

Example:

<?php

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

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

@BenjaVR BenjaVR added the bug Something isn't working label Aug 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant