mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-01-14 21:31:23 +00:00
apply rector rules: php up to php82
This commit is contained in:
@@ -27,7 +27,7 @@ use Symfony\Component\Security\Core\Security;
|
||||
use function count;
|
||||
use function substr;
|
||||
|
||||
final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepositoryInterface
|
||||
final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepositoryInterface
|
||||
{
|
||||
public function __construct(private CenterResolverManagerInterface $centerResolverDispatcher, private EntityManagerInterface $em, private Security $security, private AuthorizationHelperInterface $authorizationHelper)
|
||||
{
|
||||
@@ -122,8 +122,8 @@ final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepository
|
||||
|
||||
break;
|
||||
|
||||
case str_starts_with($flag, 'state_'):
|
||||
$state = substr($flag, 6);
|
||||
case str_starts_with((string) $flag, 'state_'):
|
||||
$state = substr((string) $flag, 6);
|
||||
$orXState
|
||||
->add(
|
||||
"JSONB_EXISTS_IN_ARRAY(t.currentStates, :state_{$key}) = 'TRUE'"
|
||||
|
||||
Reference in New Issue
Block a user