fixes after merge of master into upgrade-sf4

This commit is contained in:
2024-02-12 22:31:16 +01:00
parent 37af488f69
commit f889d67e94
664 changed files with 795 additions and 1980 deletions

View File

@@ -60,8 +60,7 @@ final class SingleTaskController extends AbstractController
private readonly SingleTaskRepository $singleTaskRepository,
private readonly Security $security,
private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry,
) {
}
) {}
/**
* @Route(

View File

@@ -27,9 +27,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
class SingleTaskType extends AbstractType
{
public function __construct(private readonly ParameterBagInterface $parameterBag, private readonly CenterResolverDispatcherInterface $centerResolverDispatcher, private readonly ScopeResolverDispatcher $scopeResolverDispatcher)
{
}
public function __construct(private readonly ParameterBagInterface $parameterBag, private readonly CenterResolverDispatcherInterface $centerResolverDispatcher, private readonly ScopeResolverDispatcher $scopeResolverDispatcher) {}
public function buildForm(FormBuilderInterface $builder, array $options)
{

View File

@@ -17,6 +17,4 @@ namespace Chill\TaskBundle\Repository;
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
abstract class AbstractTaskRepository extends \Doctrine\ORM\EntityRepository
{
}
abstract class AbstractTaskRepository extends \Doctrine\ORM\EntityRepository {}

View File

@@ -17,6 +17,4 @@ namespace Chill\TaskBundle\Repository;
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class RecurringTaskRepository extends \Doctrine\ORM\EntityRepository
{
}
class RecurringTaskRepository extends \Doctrine\ORM\EntityRepository {}

View File

@@ -23,9 +23,7 @@ use Symfony\Component\Security\Core\Security;
final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepositoryInterface
{
public function __construct(private CenterResolverManagerInterface $centerResolverDispatcher, private EntityManagerInterface $em, private Security $security, private AuthorizationHelperInterface $authorizationHelper)
{
}
public function __construct(private CenterResolverManagerInterface $centerResolverDispatcher, private EntityManagerInterface $em, private Security $security, private AuthorizationHelperInterface $authorizationHelper) {}
public function buildBaseQuery(
?string $pattern = null,

View File

@@ -22,8 +22,7 @@ class SingleTaskStateRepository
public function __construct(
private readonly Connection $connection
) {
}
) {}
/**
* Return a list of all states associated to at least one single task in the database.

View File

@@ -29,8 +29,7 @@ class AuthorizationEvent extends \Symfony\Contracts\EventDispatcher\Event
private readonly AbstractTask|AccompanyingPeriod|Person|null $subject,
private readonly string $attribute,
private readonly TokenInterface $token
) {
}
) {}
public function getAttribute()
{

View File

@@ -18,6 +18,4 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
*
* @coversNothing
*/
final class TaskControllerTest extends WebTestCase
{
}
final class TaskControllerTest extends WebTestCase {}

View File

@@ -30,9 +30,7 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
{
final public const TYPE = 'chill_task.transition';
public function __construct(protected EntityManagerInterface $em, protected Registry $registry, protected AuthorizationHelper $authorizationHelper, protected Security $security)
{
}
public function __construct(protected EntityManagerInterface $em, protected Registry $registry, protected AuthorizationHelper $authorizationHelper, protected Security $security) {}
public function fetchQuery($context, $args)
{

View File

@@ -11,6 +11,4 @@ declare(strict_types=1);
namespace Chill\TaskBundle\Workflow;
interface TaskWorkflowDefinition
{
}
interface TaskWorkflowDefinition {}