<?php abstract class Frame { } final class TextFrameDecorator extends Frame { } abstract class FrameReflower { - /** - * Frame for this reflower - * @var Frame - */ - protected $_frame; + /** + * Frame for this reflower + */ + protected \Frame $_frame; public function __construct(Frame $frame) { } } final class SimpleTextFrameReflower extends FrameReflower { /** * @var TextFrameDecorator */ protected $_frame; public function __construct(TextFrameDecorator $frame) { parent::__construct($frame); } }
Applied Rules:
rector.php