1
0
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:
Matt Stauffer
2022-12-22 00:07:21 -05:00
parent 6fbe589304
commit 0f91d88bc4
2 changed files with 14 additions and 10 deletions

View File

@@ -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.
*