1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 01:00:09 +01:00

Use constructor promotion

This commit is contained in:
Matt Stauffer
2022-12-20 21:51:15 -05:00
parent 78d0398942
commit 75d43a42ea
9 changed files with 21 additions and 75 deletions

View File

@@ -51,8 +51,6 @@ class Diagnose
'sh -c \'for file in ~/.config/valet/nginx/*; do echo "------\n~/.config/valet/nginx/$(basename $file)\n---\n"; cat $file | grep -n "# valet loopback"; echo "\n------\n"; done\'',
];
public $cli;
public $files;
public $print;
public $progressBar;
@@ -63,10 +61,8 @@ class Diagnose
* @param Filesystem $files
* @return void
*/
public function __construct(CommandLine $cli, Filesystem $files)
public function __construct(public CommandLine $cli, public Filesystem $files)
{
$this->cli = $cli;
$this->files = $files;
}
/**