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

@@ -161,9 +161,7 @@ final class CronManagerTest extends TestCase
class JobCanRun implements CronJobInterface
{
public function __construct(private readonly string $key)
{
}
public function __construct(private readonly string $key) {}
public function canRun(?CronJobExecution $cronJobExecution): bool
{

View File

@@ -532,17 +532,14 @@ class DummyFilterWithApplying implements FilterInterface
public function __construct(
private readonly ?string $role,
private readonly string $applyOn
) {
}
) {}
public function getTitle()
{
return 'dummy';
}
public function buildForm(FormBuilderInterface $builder)
{
}
public function buildForm(FormBuilderInterface $builder) {}
public function getFormDefaultData(): array
{
@@ -559,9 +556,7 @@ class DummyFilterWithApplying implements FilterInterface
return $this->role;
}
public function alterQuery(QueryBuilder $qb, $data)
{
}
public function alterQuery(QueryBuilder $qb, $data) {}
public function applyOn()
{
@@ -577,17 +572,14 @@ class DummyExport implements ExportInterface
* @var array<string>
*/
private readonly array $supportedModifiers,
) {
}
) {}
public function getTitle()
{
return 'dummy';
}
public function buildForm(FormBuilderInterface $builder)
{
}
public function buildForm(FormBuilderInterface $builder) {}
public function getFormDefaultData(): array
{

View File

@@ -117,13 +117,9 @@ class SortExportElementTest extends KernelTestCase
private function makeAggregator(string $title): AggregatorInterface
{
return new class ($title) implements AggregatorInterface {
public function __construct(private readonly string $title)
{
}
public function __construct(private readonly string $title) {}
public function buildForm(FormBuilderInterface $builder)
{
}
public function buildForm(FormBuilderInterface $builder) {}
public function getFormDefaultData(): array
{
@@ -150,9 +146,7 @@ class SortExportElementTest extends KernelTestCase
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
{
}
public function alterQuery(QueryBuilder $qb, $data) {}
public function applyOn()
{
@@ -164,18 +158,14 @@ class SortExportElementTest extends KernelTestCase
private function makeFilter(string $title): FilterInterface
{
return new class ($title) implements FilterInterface {
public function __construct(private readonly string $title)
{
}
public function __construct(private readonly string $title) {}
public function getTitle()
{
return $this->title;
}
public function buildForm(FormBuilderInterface $builder)
{
}
public function buildForm(FormBuilderInterface $builder) {}
public function getFormDefaultData(): array
{
@@ -192,9 +182,7 @@ class SortExportElementTest extends KernelTestCase
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
{
}
public function alterQuery(QueryBuilder $qb, $data) {}
public function applyOn()
{

View File

@@ -34,9 +34,7 @@ final class TokenManagerTest extends KernelTestCase
$this->tokenManager = new TokenManager('secret', $logger);
}
public static function setUpBefore()
{
}
public static function setUpBefore() {}
public function testGenerate()
{

View File

@@ -35,9 +35,7 @@ final class DefaultScopeResolverTest extends TestCase
{
$scope = new Scope();
$entity = new class ($scope) implements HasScopeInterface {
public function __construct(private readonly Scope $scope)
{
}
public function __construct(private readonly Scope $scope) {}
public function getScope()
{
@@ -53,9 +51,7 @@ final class DefaultScopeResolverTest extends TestCase
public function testHasScopesInterface()
{
$entity = new class ($scopeA = new Scope(), $scopeB = new Scope()) implements HasScopesInterface {
public function __construct(private readonly Scope $scopeA, private readonly Scope $scopeB)
{
}
public function __construct(private readonly Scope $scopeA, private readonly Scope $scopeB) {}
public function getScopes(): iterable
{

View File

@@ -36,9 +36,7 @@ final class ScopeResolverDispatcherTest extends TestCase
{
$scope = new Scope();
$entity = new class ($scope) implements HasScopeInterface {
public function __construct(private readonly Scope $scope)
{
}
public function __construct(private readonly Scope $scope) {}
public function getScope()
{