DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -22,25 +22,6 @@ class ActionEvent extends Event
public const MOVE = 'CHILL_PERSON.MOVE_ASSOCIATED_ENTITY';
/**
* the FQDN class name as recorded in doctrine.
*
* @var string
*/
protected $entity;
/**
* an array of key value data to describe the movement.
*
* @var array
*/
protected $metadata;
/**
* @var int
*/
protected $personId;
/**
* @var string[]
*/
@@ -52,18 +33,26 @@ class ActionEvent extends Event
protected $preSql = [];
/**
* the sql statement.
*
* @var string
* @param string $entity
* @param mixed[] $metadata
* @param int $personId
* @param string $sqlStatement
*/
protected $sqlStatement;
public function __construct($personId, $entity, $sqlStatement, $metadata = [])
{
$this->personId = $personId;
$this->entity = $entity;
$this->sqlStatement = $sqlStatement;
$this->metadata = $metadata;
public function __construct(
protected $personId,
/**
* the FQDN class name as recorded in doctrine.
*/
protected $entity,
/**
* the sql statement.
*/
protected $sqlStatement,
/**
* an array of key value data to describe the movement.
*/
protected $metadata = []
) {
}
/**