rector/rules-tests/Php74/Rector/Property/TypedPropertyRector/Fixture/json_body_trait.php.inc
Tomas Votruba 1f63ed3e55
Reworking trait scope run (#952)
* try reworking trait scope run

* load configs from extension installer

* add trait type

* load configs from extension installer in PHPStan internally in Rector too

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
2021-10-04 23:11:10 +02:00

44 lines
674 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;
}
}
?>
-----
<?php
namespace Rector\Tests\Php74\Rector\Property\TypedPropertyRector\Fixture;
trait JsonBodyTrait
{
private ?array $body = null;
public function setJsonBody(array $body): self
{
$this->body = $body;
return $this;
}
public function getJsonBody(): ?array
{
return $this->body;
}
}
?>