mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 09:10:03 +01:00
Clean up NullWriter references
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
/**
|
||||
* Set or get a global console writer.
|
||||
*
|
||||
* @param null|Symfony\Component\Console\Output\ConsoleOutputInterface $writer
|
||||
* @return Symfony\Component\Console\Output\ConsoleOutputInterface
|
||||
* @param null|OutputInterface $writer
|
||||
* @return OutputInterface|\NullWriter|null
|
||||
*/
|
||||
function writer($writer = null)
|
||||
{
|
||||
@@ -47,9 +47,11 @@ function writer($writer = null)
|
||||
return $container->make('writer');
|
||||
}
|
||||
|
||||
return Container::getInstance()->instance('writer', $writer);
|
||||
$container->instance('writer', $writer);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Output the given text to the console.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user