mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
apply rector rules: php up to php82
This commit is contained in:
@@ -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)),
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user