Skip to content

False-positive when adding optional parameter to constructor #978

@vjik

Description

@vjik

Example: yiisoft/log#128

Before:

public function __construct()
{
    // ...
}

After:

public function __construct(array $levels = [])
{
    // ...
}

Result:

[BC] ADDED: Parameter levels was added to Method __construct() of class Yiisoft\Log\Target

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