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
* 4.1:
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
@@ -465,11 +465,11 @@ public function add(Command $command)
465
465
}
466
466
467
467
if (null === $command->getDefinition()) {
468
-
thrownewLogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', get_class($command)));
468
+
thrownewLogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', \get_class($command)));
469
469
}
470
470
471
471
if (!$command->getName()) {
472
-
thrownewLogicException(sprintf('The command defined in "%s" cannot have an empty name.', get_class($command)));
472
+
thrownewLogicException(sprintf('The command defined in "%s" cannot have an empty name.', \get_class($command)));
473
473
}
474
474
475
475
$this->commands[$command->getName()] = $command;
@@ -566,7 +566,7 @@ public function findNamespace($namespace)
566
566
$message = sprintf('There are no commands defined in the "%s" namespace.', $namespace);
567
567
568
568
if ($alternatives = $this->findAlternatives($namespace, $allNamespaces)) {
569
-
if (1 == count($alternatives)) {
569
+
if (1 == \count($alternatives)) {
570
570
$message .= "\n\nDid you mean this?\n";
571
571
} else {
572
572
$message .= "\n\nDid you mean one of these?\n";
@@ -578,8 +578,8 @@ public function findNamespace($namespace)
thrownewNamespaceNotFoundException(sprintf("The namespace \"%s\" is ambiguous.\nDid you mean one of these?\n%s", $namespace, $this->getAbbreviationSuggestions(array_values($namespaces))), array_values($namespaces));
584
584
}
585
585
@@ -612,7 +612,7 @@ public function find($name)
612
612
}
613
613
614
614
// if no commands matched or we just matched namespaces
615
-
if (empty($commands) || count(preg_grep('{^'.$expr.'$}i', $commands)) < 1) {
615
+
if (empty($commands) || \count(preg_grep('{^'.$expr.'$}i', $commands)) < 1) {
616
616
if (false !== $pos = strrpos($name, ':')) {
617
617
// check if a namespace exists and contains commands
618
618
$this->findNamespace(substr($name, 0, $pos));
@@ -621,7 +621,7 @@ public function find($name)
621
621
$message = sprintf('Command "%s" is not defined.', $name);
622
622
623
623
if ($alternatives = $this->findAlternatives($name, $allCommands)) {
624
-
if (1 == count($alternatives)) {
624
+
if (1 == \count($alternatives)) {
625
625
$message .= "\n\nDid you mean this?\n";
626
626
} else {
627
627
$message .= "\n\nDid you mean one of these?\n";
@@ -633,18 +633,18 @@ public function find($name)
633
633
}
634
634
635
635
// 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