mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
Fix deprecations and code style issues
This commit is contained in:
@@ -91,7 +91,7 @@ class JobWithReturn implements CronJobInterface
|
||||
return 'with-data';
|
||||
}
|
||||
|
||||
public function run(array $lastExecutionData): array|null
|
||||
public function run(array $lastExecutionData): ?array
|
||||
{
|
||||
return ['data' => 'test'];
|
||||
}
|
||||
|
@@ -175,7 +175,7 @@ class JobCanRun implements CronJobInterface
|
||||
return $this->key;
|
||||
}
|
||||
|
||||
public function run(array $lastExecutionData): array|null
|
||||
public function run(array $lastExecutionData): ?array
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ class JobCannotRun implements CronJobInterface
|
||||
return 'job-b';
|
||||
}
|
||||
|
||||
public function run(array $lastExecutionData): array|null
|
||||
public function run(array $lastExecutionData): ?array
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
@@ -117,7 +117,7 @@ final class UserNormalizerTest extends TestCase
|
||||
*
|
||||
* @throws ExceptionInterface
|
||||
*/
|
||||
public function testNormalize(User|null $user, mixed $format, mixed $context, mixed $expected)
|
||||
public function testNormalize(?User $user, mixed $format, mixed $context, mixed $expected)
|
||||
{
|
||||
$userRender = $this->prophesize(UserRender::class);
|
||||
$userRender->renderString(Argument::type(User::class), Argument::type('array'))->willReturn($user ? $user->getLabel() : '');
|
||||
|
Reference in New Issue
Block a user