Skip to content

Commit

Permalink
#2407 - Simplify declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Aug 31, 2023
1 parent 3cfc851 commit fec8f76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Library/Backends/BackendFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public function createBackend()
*/
private function resolveBackendClass(): string
{
$parser = new ArgvInput();
$backend = $parser->getParameterOption('--backend', null);
$backend = (new ArgvInput())->getParameterOption('--backend', null);

if (null === $backend) {
// Do not use this feature for typical use case.
Expand Down

0 comments on commit fec8f76

Please sign in to comment.