fix left-over in docs

This commit is contained in:
Tomas Votruba 2018-12-25 21:05:57 +01:00
parent 997808b75e
commit 520a00fe28
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,3 @@
Rector dev-types-known@d74c0d2
Config file: /var/www/rector/rector.yml
# All Rectors Overview
- [Projects](#projects)
@ -1510,7 +1507,7 @@ Null is no more allowed in get_class()
- class: `Rector\Php\Rector\FuncCall\TrailingCommaArgumentsRector`
Adds trailing commas to function and methods calls
Adds trailing commas to function and methods calls
```diff
calling(

View File

@ -3,6 +3,7 @@
namespace Rector\Console;
use Jean85\PrettyVersions;
use Rector\ContributorTools\Command\GenerateDocsCommand;
use Rector\ContributorTools\Exception\Command\ContributorCommandInterface;
use Symfony\Component\Console\Application as SymfonyApplication;
use Symfony\Component\Console\Command\Command;
@ -11,6 +12,7 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symplify\PackageBuilder\Console\Command\CommandNaming;
use function Safe\getcwd;
use function Safe\realpath;
@ -45,7 +47,7 @@ final class Application extends SymfonyApplication
$shouldFollowByNewline = false;
// skip in this case, since generate content must be clear from meta-info
if (is_a($input->getFirstArgument(), ContributorCommandInterface::class, true)) {
if ($input->getFirstArgument() === CommandNaming::classToName(GenerateDocsCommand::class)) {
return parent::doRun($input, $output);
}