Skip to content

Multiline callable @params are not supported #46

Closed
@simPod

Description

@simPod
<?php

/**
 * @param callable(
 *    int
 * ): string $callable
 */
function takesAnInt(callable $callable) : void {
}

https://phpstan.org/r/e521d1f0-70b7-4cc3-bae6-0e228ad58cc6

This gives parsing error

PHPDoc tag @param has invalid value (callable( int): Unexpected token "(", expected variable at offset 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions