apply rector rules: php up to php82

This commit is contained in:
2023-07-19 23:16:01 +02:00
parent 7b637d1287
commit 023a29cb78
744 changed files with 1369 additions and 1381 deletions

View File

@@ -326,7 +326,7 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
switch ($f) {
case 'person_countryOfBirth':
case 'person_nationality':
$suffix = substr($f, 7);
$suffix = substr((string) $f, 7);
$qb->addSelect(sprintf('IDENTITY(person.%s) as %s', $suffix, $f));
break;
@@ -339,7 +339,7 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
case 'person_address_country_name':
case 'person_address_country_code':
// remove 'person_'
$suffix = substr($f, 7);
$suffix = substr((string) $f, 7);
$qb->addSelect(sprintf(
'GET_PERSON_ADDRESS_%s(person.id, :address_date) AS %s',
@@ -362,8 +362,8 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
break;
default:
$prefix = substr($f, 0, 7);
$suffix = substr($f, 7);
$prefix = substr((string) $f, 0, 7);
$suffix = substr((string) $f, 7);
match ($prefix) {
'person_' => $qb->addSelect(sprintf('person.%s as %s', $suffix, $f)),

View File

@@ -19,7 +19,7 @@ use Doctrine\ORM\Query\Expr;
class ReportDateFilter implements FilterInterface
{
public function __construct(private RollingDateConverterInterface $rollingDateConverter)
public function __construct(private readonly RollingDateConverterInterface $rollingDateConverter)
{
}