Skip to content

Commit

Permalink
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_…
Browse files Browse the repository at this point in the history
…null_value
  • Loading branch information
nicolas-grekas committed Jan 23, 2024
1 parent 2a43fbc commit f59b91e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TemplateIterator.php
Expand Up @@ -34,7 +34,7 @@ class TemplateIterator implements \IteratorAggregate
* @param array $paths Additional Twig paths to warm
* @param string|null $defaultPath The directory where global templates can be stored
*/
public function __construct(KernelInterface $kernel, array $paths = [], string $defaultPath = null)
public function __construct(KernelInterface $kernel, array $paths = [], ?string $defaultPath = null)
{
$this->kernel = $kernel;
$this->paths = $paths;
Expand Down Expand Up @@ -75,7 +75,7 @@ public function getIterator(): \Traversable
*
* @return string[]
*/
private function findTemplatesInDirectory(string $dir, string $namespace = null, array $excludeDirs = []): array
private function findTemplatesInDirectory(string $dir, ?string $namespace = null, array $excludeDirs = []): array
{
if (!is_dir($dir)) {
return [];
Expand Down

0 comments on commit f59b91e

Please sign in to comment.