Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply Rector changes (CI)
  • Loading branch information
xepozz authored and github-actions[bot] committed Jul 28, 2025
commit ce78cfc2052f488da04c3596a41fd9193e03a304
2 changes: 1 addition & 1 deletion src/Renderer/HtmlRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
*/
private ?array $vendorPaths = null;

private SolutionGenerator $solutionGenerator;
private readonly SolutionGenerator $solutionGenerator;

/**
* @param array $settings (deprecated) Settings can have the following keys:
Expand Down Expand Up @@ -164,7 +164,7 @@
?? $settings['traceHeaderLine']
?? null;

$this->solutionGenerator = new SolutionGenerator($solutionProviders);

Check failure on line 167 in src/Renderer/HtmlRenderer.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

InvalidArgument

src/Renderer/HtmlRenderer.php:167:58: InvalidArgument: Argument 1 of Yiisoft\ErrorHandler\Solution\SolutionGenerator::__construct expects array<array-key, Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface>, but array<array-key, Yiisoft\ErrorHandler\Solution\SolutionProviderInterface> provided (see https://psalm.dev/004)

Check failure on line 167 in src/Renderer/HtmlRenderer.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.4-ubuntu-latest

InvalidArgument

src/Renderer/HtmlRenderer.php:167:58: InvalidArgument: Argument 1 of Yiisoft\ErrorHandler\Solution\SolutionGenerator::__construct expects array<array-key, Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface>, but array<array-key, Yiisoft\ErrorHandler\Solution\SolutionProviderInterface> provided (see https://psalm.dev/004)

Check failure on line 167 in src/Renderer/HtmlRenderer.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

InvalidArgument

src/Renderer/HtmlRenderer.php:167:58: InvalidArgument: Argument 1 of Yiisoft\ErrorHandler\Solution\SolutionGenerator::__construct expects array<array-key, Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface>, but array<array-key, Yiisoft\ErrorHandler\Solution\SolutionProviderInterface> provided (see https://psalm.dev/004)

Check failure on line 167 in src/Renderer/HtmlRenderer.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.2-ubuntu-latest

InvalidArgument

src/Renderer/HtmlRenderer.php:167:58: InvalidArgument: Argument 1 of Yiisoft\ErrorHandler\Solution\SolutionGenerator::__construct expects array<array-key, Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface>, but array<array-key, Yiisoft\ErrorHandler\Solution\SolutionProviderInterface> provided (see https://psalm.dev/004)
}

public function render(Throwable $t, ?ServerRequestInterface $request = null): ErrorData
Expand Down
2 changes: 1 addition & 1 deletion src/Solution/SolutionGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
/**
* @var SolutionGeneratorInterface[]
*/
private array $generators,
private readonly array $generators,

Check failure on line 13 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:13:9: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)

Check failure on line 13 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.4-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:13:9: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)

Check failure on line 13 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:13:9: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)

Check failure on line 13 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.2-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:13:9: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)
) {
}

/**
* @return string[]

Check failure on line 18 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

MixedReturnTypeCoercion

src/Solution/SolutionGenerator.php:18:16: MixedReturnTypeCoercion: The declared return type 'array<array-key, string>' for Yiisoft\ErrorHandler\Solution\SolutionGenerator::generate is more specific than the inferred return type 'list<mixed>' (see https://psalm.dev/197)

Check failure on line 18 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.4-ubuntu-latest

MixedReturnTypeCoercion

src/Solution/SolutionGenerator.php:18:16: MixedReturnTypeCoercion: The declared return type 'array<array-key, string>' for Yiisoft\ErrorHandler\Solution\SolutionGenerator::generate is more specific than the inferred return type 'list<mixed>' (see https://psalm.dev/197)

Check failure on line 18 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

MixedReturnTypeCoercion

src/Solution/SolutionGenerator.php:18:16: MixedReturnTypeCoercion: The declared return type 'array<array-key, string>' for Yiisoft\ErrorHandler\Solution\SolutionGenerator::generate is more specific than the inferred return type 'list<mixed>' (see https://psalm.dev/197)

Check failure on line 18 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.2-ubuntu-latest

MixedReturnTypeCoercion

src/Solution/SolutionGenerator.php:18:16: MixedReturnTypeCoercion: The declared return type 'array<array-key, string>' for Yiisoft\ErrorHandler\Solution\SolutionGenerator::generate is more specific than the inferred return type 'list<mixed>' (see https://psalm.dev/197)
*/
public function generate(\Throwable $e): array
{
$result = [];

foreach ($this->generators as $generator) {
if ($generator->supports($e)) {

Check failure on line 25 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:25:17: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)

Check failure on line 25 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.4-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:25:17: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)

Check failure on line 25 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:25:17: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)

Check failure on line 25 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.2-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:25:17: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)
$result[] = $generator->generate($e);

Check failure on line 26 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:26:29: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)

Check failure on line 26 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.4-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:26:29: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)

Check failure on line 26 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:26:29: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)

Check failure on line 26 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.2-ubuntu-latest

UndefinedDocblockClass

src/Solution/SolutionGenerator.php:26:29: UndefinedDocblockClass: Docblock-defined class, interface or enum named Yiisoft\ErrorHandler\Solution\SolutionGeneratorInterface does not exist (see https://psalm.dev/200)
}
}
return $result;

Check failure on line 29 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.1-ubuntu-latest

MixedReturnTypeCoercion

src/Solution/SolutionGenerator.php:29:16: MixedReturnTypeCoercion: The type 'list<mixed>' is more general than the declared return type 'array<array-key, string>' for Yiisoft\ErrorHandler\Solution\SolutionGenerator::generate (see https://psalm.dev/197)

Check failure on line 29 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.4-ubuntu-latest

MixedReturnTypeCoercion

src/Solution/SolutionGenerator.php:29:16: MixedReturnTypeCoercion: The type 'list<mixed>' is more general than the declared return type 'array<array-key, string>' for Yiisoft\ErrorHandler\Solution\SolutionGenerator::generate (see https://psalm.dev/197)

Check failure on line 29 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

MixedReturnTypeCoercion

src/Solution/SolutionGenerator.php:29:16: MixedReturnTypeCoercion: The type 'list<mixed>' is more general than the declared return type 'array<array-key, string>' for Yiisoft\ErrorHandler\Solution\SolutionGenerator::generate (see https://psalm.dev/197)

Check failure on line 29 in src/Solution/SolutionGenerator.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.2-ubuntu-latest

MixedReturnTypeCoercion

src/Solution/SolutionGenerator.php:29:16: MixedReturnTypeCoercion: The type 'list<mixed>' is more general than the declared return type 'array<array-key, string>' for Yiisoft\ErrorHandler\Solution\SolutionGenerator::generate (see https://psalm.dev/197)
}
}
Loading