Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 26, 2023
1 parent 445588a commit 971da8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
19 changes: 5 additions & 14 deletions src/Menu/ConfigBuilder.php
Expand Up @@ -17,20 +17,11 @@

final class ConfigBuilder implements ConfigBuilderInterface
{
/**
* @var FactoryInterface
*/
private $factory;

/**
* @var TranslatorInterface
*/
private $translator;

/**
* @var array
*/
private $defaultOptions;
private FactoryInterface $factory;

private TranslatorInterface $translator;

private array $defaultOptions;

public function __construct(FactoryInterface $factory, TranslatorInterface $translator)
{
Expand Down
7 changes: 2 additions & 5 deletions src/Provider/ConfigProvider.php
Expand Up @@ -18,15 +18,12 @@

final class ConfigProvider implements MenuProviderInterface
{
/**
* @var ConfigBuilderInterface
*/
private $builder;
private ConfigBuilderInterface $builder;

/**
* @var array<string, mixed>
*/
private $menus;
private array $menus;

public function __construct(ConfigBuilderInterface $builder, array $menuIds)
{
Expand Down

0 comments on commit 971da8d

Please sign in to comment.