You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 3.4:
Fix Clidumper tests
Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
Apply fixers
Disable the native_constant_invocation fixer until it can be scoped
Update the list of excluded files for the CS fixer
@@ -444,11 +444,11 @@ public function add(Command $command)
444
444
}
445
445
446
446
if (null === $command->getDefinition()) {
447
-
thrownewLogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', get_class($command)));
447
+
thrownewLogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', \get_class($command)));
448
448
}
449
449
450
450
if (!$command->getName()) {
451
-
thrownewLogicException(sprintf('The command defined in "%s" cannot have an empty name.', get_class($command)));
451
+
thrownewLogicException(sprintf('The command defined in "%s" cannot have an empty name.', \get_class($command)));
452
452
}
453
453
454
454
$this->commands[$command->getName()] = $command;
@@ -545,7 +545,7 @@ public function findNamespace($namespace)
545
545
$message = sprintf('There are no commands defined in the "%s" namespace.', $namespace);
546
546
547
547
if ($alternatives = $this->findAlternatives($namespace, $allNamespaces)) {
548
-
if (1 == count($alternatives)) {
548
+
if (1 == \count($alternatives)) {
549
549
$message .= "\n\nDid you mean this?\n";
550
550
} else {
551
551
$message .= "\n\nDid you mean one of these?\n";
@@ -557,8 +557,8 @@ public function findNamespace($namespace)
thrownewCommandNotFoundException(sprintf("The namespace \"%s\" is ambiguous.\nDid you mean one of these?\n%s", $namespace, $this->getAbbreviationSuggestions(array_values($namespaces))), array_values($namespaces));
563
563
}
564
564
@@ -591,7 +591,7 @@ public function find($name)
591
591
}
592
592
593
593
// if no commands matched or we just matched namespaces
594
-
if (empty($commands) || count(preg_grep('{^'.$expr.'$}i', $commands)) < 1) {
594
+
if (empty($commands) || \count(preg_grep('{^'.$expr.'$}i', $commands)) < 1) {
595
595
if (false !== $pos = strrpos($name, ':')) {
596
596
// check if a namespace exists and contains commands
597
597
$this->findNamespace(substr($name, 0, $pos));
@@ -600,7 +600,7 @@ public function find($name)
600
600
$message = sprintf('Command "%s" is not defined.', $name);
601
601
602
602
if ($alternatives = $this->findAlternatives($name, $allCommands)) {
603
-
if (1 == count($alternatives)) {
603
+
if (1 == \count($alternatives)) {
604
604
$message .= "\n\nDid you mean this?\n";
605
605
} else {
606
606
$message .= "\n\nDid you mean one of these?\n";
@@ -612,18 +612,18 @@ public function find($name)
612
612
}
613
613
614
614
// filter out aliases for commands which are already on the list
@@ -217,15 +217,15 @@ public function run(InputInterface $input, OutputInterface $output)
217
217
$this->initialize($input, $output);
218
218
219
219
if (null !== $this->processTitle) {
220
-
if (function_exists('cli_set_process_title')) {
220
+
if (\function_exists('cli_set_process_title')) {
221
221
if (!@cli_set_process_title($this->processTitle)) {
222
222
if ('Darwin' === PHP_OS) {
223
223
$output->writeln('<comment>Running "cli_set_process_title" as an unprivileged user is not supported on MacOS.</comment>', OutputInterface::VERBOSITY_VERY_VERBOSE);
0 commit comments