Skip to content

MergePhpstanDocTagIntoNativeRector should not remove description #9938

Closed
rectorphp/rector-src
#8781

Description

@samsonasik

Bug Report

Subject Details
Rector version dev-main

Minimal PHP Code Causing Issue

Given the following code:

final class DemoFile
{
    /**
     * @param string|array|null $excludePattern Optional regex; classes matching this are excluded
     *                                          from the layer even when $pattern matches.
     * @phpstan-param string|list<string|null>|null $excludePattern
     */
    public function layerPattern(string $name, string|array $pattern, string|array|null $excludePattern = null): self
    {
    }
}

description part should not be removed, see

https://getrector.com/demo/100aceee-ce56-46f6-8854-cf8d721cf2d5

Expected Behaviour

The description should be kept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions