diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000..6a598c5 --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,11 @@ +parameters: + ignoreErrors: + - + message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeDefinition\\:\\:children\\(\\)\\.$#" + count: 1 + path: src/DependencyInjection/Configuration.php + + - + message: "#^Parameter \\#1 \\$mergedConfig \\(array\\{request_header\\: string, trust_request_header\\: bool, response_header\\: string, storage_service\\: string\\|null, generator_service\\: string\\|null, enable_monolog\\: bool, enable_console\\: bool, enable_twig\\: bool\\}\\) of method DR\\\\SymfonyRequestId\\\\DependencyInjection\\\\SymfonyRequestIdExtension\\:\\:loadInternal\\(\\) should be contravariant with parameter \\$mergedConfig \\(array\\) of method Symfony\\\\Component\\\\HttpKernel\\\\DependencyInjection\\\\ConfigurableExtension\\:\\:loadInternal\\(\\)$#" + count: 1 + path: src/DependencyInjection/SymfonyRequestIdExtension.php diff --git a/src/RequestIdStorage.php b/src/RequestIdStorage.php index dfec7b4..765325e 100644 --- a/src/RequestIdStorage.php +++ b/src/RequestIdStorage.php @@ -12,7 +12,7 @@ interface RequestIdStorage /** * @return string|null Null if the request does not have an identifier */ - public function getRequestId() : ?string; + public function getRequestId(): ?string; - public function setRequestId(?string $id) : void; + public function setRequestId(?string $id): void; }