Skip to content

Commit

Permalink
Symfony - added Symfony 7.x support.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsgoingd committed Oct 27, 2024
1 parent 74a1361 commit d55e7d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Clockwork/Support/Symfony/ClockworkConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct($debug)
$this->debug = $debug;
}

public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
return $this->getConfigRoot()
->children()
Expand Down
2 changes: 1 addition & 1 deletion Clockwork/Support/Symfony/ClockworkExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ClockworkExtension extends ConfigurableExtension
{
public function loadInternal(array $config, ContainerBuilder $container)
public function loadInternal(array $config, ContainerBuilder $container): void
{
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/Resources/config'));
$loader->load('clockwork.php');
Expand Down
4 changes: 2 additions & 2 deletions Clockwork/Support/Symfony/ClockworkLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct(ClockworkSupport $support)
$this->support = $support;
}

public function load($resource, $type = null)
public function load($resource, $type = null): mixed
{
$routes = new RouteCollection();

Expand Down Expand Up @@ -45,7 +45,7 @@ public function load($resource, $type = null)
return $routes;
}

public function supports($resource, $type = null)
public function supports($resource, $type = null): bool
{
return $type == 'clockwork';
}
Expand Down

0 comments on commit d55e7d5

Please sign in to comment.