Skip to content

Commit

Permalink
Fix lint commands
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 17, 2024
1 parent df52edd commit caafadd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Command/ArticleExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace Sulu\Bundle\ArticleBundle\Command;

use Sulu\Bundle\ArticleBundle\Export\ArticleExportInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -30,7 +31,7 @@ class ArticleExportCommand extends Command

public function __construct(ArticleExportInterface $articleExporter)
{
parent::__construct();
parent::__construct(static::$defaultName);

$this->articleExporter = $articleExporter;
}
Expand Down
2 changes: 1 addition & 1 deletion Command/ArticleImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ArticleImportCommand extends Command

public function __construct(ArticleImportInterface $articleImporter, ?LoggerInterface $logger = null)
{
parent::__construct();
parent::__construct(static::$defaultName);

$this->articleImporter = $articleImporter;
$this->logger = $logger ?: new NullLogger();
Expand Down
4 changes: 3 additions & 1 deletion Command/ReindexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
*/
class ReindexCommand extends Command
{
protected static $defaultName = 'sulu:article:reindex';

Check failure on line 33 in Command/ReindexCommand.php

View workflow job for this annotation

GitHub Actions / PHP Lint

Property Sulu\Bundle\ArticleBundle\Command\ReindexCommand::$defaultName has no type specified.

/**
* @var WebspaceManagerInterface
*/
Expand Down Expand Up @@ -68,7 +70,7 @@ public function __construct(
IndexerInterface $liveIndexer,
string $suluContext
) {
parent::__construct('sulu:article:reindex');
parent::__construct(static::$defaultName);
$this->webspaceManager = $webspaceManager;
$this->propertyEncoder = $propertyEncoder;
$this->documentManager = $documentManager;
Expand Down

0 comments on commit caafadd

Please sign in to comment.