mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 17:44:58 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -20,7 +20,7 @@ use Throwable;
|
||||
*/
|
||||
class TemplateException extends RuntimeException
|
||||
{
|
||||
public function __construct(private array $errors, $code = 0, ?Throwable $previous = null)
|
||||
public function __construct(private readonly array $errors, $code = 0, ?Throwable $previous = null)
|
||||
{
|
||||
parent::__construct('Error while generating document from template', $code, $previous);
|
||||
}
|
||||
|
@@ -24,12 +24,12 @@ use Throwable;
|
||||
|
||||
final class RelatorioDriver implements DriverInterface
|
||||
{
|
||||
private string $url;
|
||||
private readonly string $url;
|
||||
|
||||
public function __construct(
|
||||
private HttpClientInterface $client,
|
||||
private readonly HttpClientInterface $client,
|
||||
ParameterBagInterface $parameterBag,
|
||||
private LoggerInterface $logger
|
||||
private readonly LoggerInterface $logger
|
||||
) {
|
||||
$this->url = $parameterBag->get('chill_doc_generator')['driver']['relatorio']['url'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user