Hi,

Fow now we have @extends and @implements to work with inheritance and interfaces but there is nothing about Trait.

   /**
     * @implements Plugin\FormatsInterface<Api\Address>
     */
	final class Formats extends AbstractPlugin implements Plugin\FormatsInterface
	{
		/**
		 * @extends Plugin\FormatsTrait<Api\Address>
		 */
		use Plugin\FormatsTrait;
        }

Is it possible to implement @extends for traits as @uses already exists?

Thank you.

Jean-FrancoisHIVERT Thank you, I think it should be @use:

	final class Formats extends AbstractPlugin implements Plugin\FormatsInterface
	{
		/**
		 * @use Plugin\FormatsTrait<Api\Address>
		 */
		use Plugin\FormatsTrait;
        }

Adding to our to-do!

2 months later
20 days later

Jean-FrancoisHIVERT implemented; we'll be doing more testing before release though.

If you'd have any other test cases, we'd try them before the release.

Thanks!

    6 days later

    Pre-release 1.34.13152 implements @use with generic arguments above trait uses.

    Thank you for the feedback!

    Write a Reply...