1
0
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:
Matt Stauffer
2022-12-18 15:42:18 -06:00
parent 9b503a2ed3
commit 1220cd6839
2 changed files with 10 additions and 8 deletions

View File

@@ -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!';
}
}