mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
fixes after merge of master into upgrade-sf4
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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()
|
||||
{
|
||||
|
@@ -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()
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user