mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 08:50:50 +00:00
1f63ed3e55
* 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>
44 lines
674 B
PHP
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;
|
|
}
|
|
}
|
|
|
|
?>
|