Skip to content
Merged
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
3 changes: 2 additions & 1 deletion src/bundle/DataCollector/TwigDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\LateDataCollectorInterface;
use Throwable;
use Twig\Environment;
use Twig\Profiler\Profile;

Expand All @@ -36,7 +37,7 @@ private function getTemplatePathRegistry()
return $this->templatePathRegistry;
}

public function collect(Request $request, Response $response, \Throwable $exception = null)
public function collect(Request $request, Response $response, ?Throwable $exception = null)
{
parent::collect($request, $response, $exception);
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Asset/AssetPathResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class AssetPathResolver implements AssetPathResolverInterface
private $webRootDir;

/**
* @var \Psr\Log\LoggerInterface
* @var \Psr\Log\LoggerInterface|null
*/
private $logger;

public function __construct(array $designPaths, $webRootDir, LoggerInterface $logger = null)
public function __construct(array $designPaths, $webRootDir, ?LoggerInterface $logger = null)
{
$this->designPaths = $designPaths;
$this->webRootDir = $webRootDir;
Expand Down
Loading