-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
CS Fixes #22844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CS Fixes #22844
Conversation
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | n/a |
License | MIT |
Doc PR | n/a |
travis random failure unrelated |
@@ -197,7 +197,6 @@ public function doRun(InputInterface $input, OutputInterface $output) | |||
$e = $this->runningCommand = null; | |||
// the command name MUST be the first element of the input | |||
$command = $this->find($name); | |||
} catch (\Exception $e) { | |||
} catch (\Throwable $e) { | |||
} | |||
if (null !== $e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then this if is useless (and the initialization of $e also)
@@ -813,7 +812,6 @@ protected function doRunCommand(Command $command, InputInterface $input, OutputI | |||
} else { | |||
$exitCode = ConsoleCommandEvent::RETURN_CODE_DISABLED; | |||
} | |||
} catch (\Exception $e) { | |||
} catch (\Throwable $e) { | |||
} | |||
if (null !== $e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same (init + if can be removed)
@@ -88,7 +52,7 @@ private function getType(\ReflectionParameter $parameter) | |||
if (!$type = $parameter->getType()) { | |||
return; | |||
} | |||
$typeName = $type instanceof \ReflectionNamedType ? $type->getName() : $type->__toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReflectionType::__toString() is deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right - and there are more of it in the code base, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, all fixed. addressed your other comments also
b0cf180
to
832d490
Compare
@@ -51,7 +51,6 @@ public static function castClosure(\Closure $c, array $a, Stub $stub, $isNested, | |||
unset($v->value['position'], $v->value['isVariadic'], $v->value['byReference'], $v); | |||
} | |||
} | |||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
me either, applied fabbot patch blindly. reverted
Thank you @chalasr. |
This PR was merged into the 4.0-dev branch. Discussion ---------- CS Fixes | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 21114f8 CS Fixes