mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
Add type hints and return type hints to CommandLine
This commit is contained in:
@@ -953,15 +953,17 @@ public function test_it_can_read_php_rc_version()
|
||||
|
||||
class CommandLineFake extends CommandLine
|
||||
{
|
||||
public function runCommand($command, callable $onError = null)
|
||||
public function runCommand(string $command, callable $onError = null): string
|
||||
{
|
||||
// noop
|
||||
//
|
||||
// This let's us pretend like every command executes correctly
|
||||
// This lets us pretend like every command executes correctly
|
||||
// so we can (elsewhere) ensure the things we meant to do
|
||||
// (like "create a certificate") look like they
|
||||
// happened without actually running any
|
||||
// commands for real.
|
||||
|
||||
return 'hooray!';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user