Skip to content

Commit 1fbf562

Browse files
committed
refactor(core): improvements && deps updated
1 parent f35163f commit 1fbf562

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@
131131
"friendsofphp/php-cs-fixer": "^3.5",
132132
"infection/infection": "^0.26.2",
133133
"marcocesarato/php-conventional-changelog": "^1.13",
134-
"phpstan/phpstan": "^1.6.4",
134+
"phpstan/phpstan": "^1.7.6",
135135
"phpstan/phpstan-deprecation-rules": "^1.0",
136-
"phpstan/phpstan-doctrine": "^1.3.3",
136+
"phpstan/phpstan-doctrine": "^1.3.6",
137137
"phpstan/phpstan-phpunit": "^1.1.1",
138-
"phpstan/phpstan-strict-rules": "^1.2.2",
139-
"phpstan/phpstan-symfony": "^1.1.8",
138+
"phpstan/phpstan-strict-rules": "^1.2.3",
139+
"phpstan/phpstan-symfony": "^1.2.2",
140140
"phpunit/phpunit": "^9.5.13",
141141
"psr/cache": "^1.0 || ^2.0 || ^3.0",
142142
"rector/rector": "0.12.21",

src/Command/RemoveFailedTaskCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9191
$name = $input->getArgument(name: 'name');
9292
$force = $input->getOption(name: 'force');
9393

94-
$name = htmlspecialchars(string: $name, flags: ENT_QUOTES, encoding: 'UTF-8');
94+
$name = htmlspecialchars(string: (string) $name, flags: ENT_QUOTES, encoding: 'UTF-8');
9595

9696
try {
9797
$failedTasks = $this->worker->getFailedTasks();

src/Command/RetryFailedTaskCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9999
$force = $input->getOption(name: 'force');
100100

101101
try {
102-
$task = $this->worker->getFailedTasks()->get(taskName: $name);
102+
$task = $this->worker->getFailedTasks()->get(taskName: (string) $name);
103103
} catch (InvalidArgumentException) {
104104
$symfonyStyle->error(message: sprintf('The task "%s" does not fails', $name));
105105

src/Command/YieldTaskCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9292

9393
if (true === $force || $symfonyStyle->confirm(question: 'Do you want to yield this task?', default: false)) {
9494
try {
95-
$this->scheduler->yieldTask(name: $name, async: $input->getOption('async'));
95+
$this->scheduler->yieldTask(name: (string) $name, async: (bool) $input->getOption('async'));
9696
} catch (Throwable $throwable) {
9797
$symfonyStyle->error(message: [
9898
'An error occurred when trying to yield the task:',

src/Task/TaskListInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function walk(Closure $func): TaskListInterface|LazyTaskList;
6767
/**
6868
* Return an array containing the results of applying @param Closure $func to each tasks
6969
*
70-
* Depending on @param bool $keepKeys, the final array can be indexed using numeric keys.
70+
* Depending on @param bool $keepKeys The final array can be indexed using numeric keys.
7171
*
7272
* @return array<int|string, mixed>
7373
*/

src/Transport/FiberTransportFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ public function createTransport(
3939
SchedulePolicyOrchestratorInterface $schedulePolicyOrchestrator
4040
): FiberTransport {
4141
foreach ($this->factories as $factory) {
42-
if (!$factory->support($dsn->getOptions()[0])) {
42+
if (!$factory->support((string) $dsn->getOptions()[0])) {
4343
continue;
4444
}
4545

46-
$dsn = Dsn::fromString($dsn->getOptions()[0]);
46+
$dsn = Dsn::fromString((string) $dsn->getOptions()[0]);
4747

4848
return new FiberTransport(
4949
$factory->createTransport($dsn, $options, $configuration, $serializer, $schedulePolicyOrchestrator),

0 commit comments

Comments
 (0)