Skip to content

deprecated trait should turn all methods deprecated #128

Open
@staabm

Description

@staabm
<?php

declare(strict_types=1);

/**
 * @deprecated use something else
 */
trait MyTrait
{
	public function doFoo()
	{
	}
}

class X
{
	use MyTrait;
}

$x = new X();
$x->doFoo();

I think we should see deprecation messages for every trait-method beeing called, when the trait itself is marked deprecated.

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