From 7b7645b77224c69956c61eee2f50a41b3534b648 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 24 Dec 2025 18:37:13 +0300 Subject: [PATCH] Replace deprecated methods --- bin/codestyle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/codestyle b/bin/codestyle index c043f04..83ce77a 100644 --- a/bin/codestyle +++ b/bin/codestyle @@ -43,9 +43,9 @@ require_once $file; $application = new Application('The Dragon Code: Styler', '6.x'); -$application->add(new EditorConfigCommand); -$application->add(new PintCommand); -$application->add(new RectorCommand); -$application->add(new NpmCommand); +$application->addCommand(new EditorConfigCommand); +$application->addCommand(new PintCommand); +$application->addCommand(new RectorCommand); +$application->addCommand(new NpmCommand); $application->run();