rector/rules-tests/Php74/Rector/Property/TypedPropertyRector/Fixture/skip_trait.php.inc
Tomas Votruba b3b001a445
[PHP 7.4] Add more typed properties (#23)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-12 12:16:44 +02:00

24 lines
363 B
PHP

<?php
namespace Rector\Tests\Php74\Rector\Property\TypedPropertyRector\Fixture;
trait JsonBodyTrait
{
private $body;
public function setJsonBody( array $body ): self {
$this->body = $body;
return $this;
}
public function getJsonBody(): ?array {
return $this->body;
}
}
class UsingTraig
{
use JsonBodyTrait;
}