Skip to content

Commit

Permalink
Merge pull request #125 from rpayanm/patch-1
Browse files Browse the repository at this point in the history
SingleDirectoryComponent::__construct should type against interface
  • Loading branch information
Chi-teck authored Mar 3, 2024
2 parents ee1d873 + 9f09c2a commit b2bd619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/SingleDirectoryComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace DrupalCodeGenerator\Command;

use Drupal\Core\Asset\LibraryDiscoveryInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Asset\LibraryDiscovery;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use DrupalCodeGenerator\Application;
use DrupalCodeGenerator\Asset\AssetCollection;
Expand Down Expand Up @@ -37,7 +37,7 @@ final class SingleDirectoryComponent extends BaseGenerator implements ContainerI
public function __construct(
private readonly ModuleHandlerInterface $moduleHandler,
private readonly ThemeHandlerInterface $themeHandler,
private readonly LibraryDiscovery $libraryDiscovery,
private readonly LibraryDiscoveryInterface $libraryDiscovery,
) {
parent::__construct();
}
Expand Down

0 comments on commit b2bd619

Please sign in to comment.