From b1a5a795761be90b3aeeae86da2eb14c72ba8ced Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Sat, 7 Dec 2024 13:10:26 +0800 Subject: [PATCH] Change alias command --- modules/system/console/WinterSniff.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/modules/system/console/WinterSniff.php b/modules/system/console/WinterSniff.php index a3d3d69479..622a8b55e8 100644 --- a/modules/system/console/WinterSniff.php +++ b/modules/system/console/WinterSniff.php @@ -46,16 +46,10 @@ class WinterSniff extends BaseScaffoldCommand 'scaffold/phpcs/phpcs.xml.stub' => 'phpcs.xml', ]; - /** - * Create a new command instance. - */ - public function __construct() - { - parent::__construct(); + protected $replaces = [ + 'winter:phpcs', + ]; - // Register aliases for backwards compatibility with October - $this->setAliases(['winter:phpcs']); - } /** * Execute the console command.