Add solution providers #223
Annotations
1 error
|
rector / PHP 8.4-ubuntu-latest:
src/Renderer/HtmlRenderer.php#L109
ClassPropertyAssignToConstructorPromotionRector / ReadOnlyPropertyRector
--- Original
+++ New
@@ -109,11 +109,6 @@
private ?array $vendorPaths = null;
/**
- * @var SolutionProviderInterface[]
- */
- private array $solutionProviders;
-
- /**
* @param array $settings (deprecated) Settings can have the following keys:
* - template: string, full path of the template file for rendering exceptions without call stack information.
* - verboseTemplate: string, full path of the template file for rendering exceptions with call stack information.
@@ -144,7 +139,7 @@
?int $maxSourceLines = null,
?int $maxTraceLines = null,
?string $traceHeaderLine = null,
- array $solutionProviders = []
+ private readonly array $solutionProviders = []
) {
$this->markdownParser = new GithubMarkdown();
$this->markdownParser->html5 = true;
@@ -166,8 +161,6 @@
$this->traceHeaderLine = $traceHeaderLine
?? $settings['traceHeaderLine']
?? null;
-
- $this->solutionProviders = $solutionProviders;
}
public function render(Throwable $t, ?ServerRequestInterface $request = null): ErrorData
|