From abbd829eee2c39d465d30bec04e0ca0d07e80335 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 20 Jul 2022 17:19:51 +0100 Subject: [PATCH 1/2] Improves console output --- composer.json | 20 ++++++++++---------- src/Console/WebhookCommand.php | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index e997eeb7..d4ff8b87 100644 --- a/composer.json +++ b/composer.json @@ -20,15 +20,15 @@ "require": { "php": "^8.0", "ext-json": "*", - "illuminate/console": "^9.0", - "illuminate/contracts": "^9.0", - "illuminate/database": "^9.0", - "illuminate/http": "^9.0", - "illuminate/log": "^9.0", - "illuminate/notifications": "^9.0", - "illuminate/routing": "^9.0", - "illuminate/support": "^9.0", - "illuminate/view": "^9.0", + "illuminate/console": "^9.21", + "illuminate/contracts": "^9.21", + "illuminate/database": "^9.21", + "illuminate/http": "^9.21", + "illuminate/log": "^9.21", + "illuminate/notifications": "^9.21", + "illuminate/routing": "^9.21", + "illuminate/support": "^9.21", + "illuminate/view": "^9.21", "moneyphp/money": "^3.2|^4.0", "nesbot/carbon": "^2.0", "stripe/stripe-php": "^7.39|^8.0", @@ -38,7 +38,7 @@ "require-dev": { "mockery/mockery": "^1.0", "orchestra/testbench": "^7.0", - "phpunit/phpunit": "^9.0" + "phpunit/phpunit": "^9.21" }, "suggest": { "ext-intl": "Allows for more locales besides the default \"en\" when formatting money values.", diff --git a/src/Console/WebhookCommand.php b/src/Console/WebhookCommand.php index fb043d08..524d79a1 100644 --- a/src/Console/WebhookCommand.php +++ b/src/Console/WebhookCommand.php @@ -44,12 +44,12 @@ public function handle() 'api_version' => $this->option('api-version') ?? Cashier::STRIPE_VERSION, ]); - $this->info('The Stripe webhook was created successfully. Retrieve the webhook secret in your Stripe dashboard and define it as an environment variable.'); + $this->components->info('The Stripe webhook was created successfully. Retrieve the webhook secret in your Stripe dashboard and define it as an environment variable.'); if ($this->option('disabled')) { $endpoint->update($endpoint->id, ['disabled' => true]); - $this->info('The Stripe webhook was disabled as requested. You may enable the webhook via the Stripe dashboard when needed.'); + $this->components->info('The Stripe webhook was disabled as requested. You may enable the webhook via the Stripe dashboard when needed.'); } } } From 33293b4dd953a70fc48731dcca29aa84baca5cd9 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 20 Jul 2022 17:21:28 +0100 Subject: [PATCH 2/2] Fixes required version of PHPUnit --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d4ff8b87..1fbbca96 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "require-dev": { "mockery/mockery": "^1.0", "orchestra/testbench": "^7.0", - "phpunit/phpunit": "^9.21" + "phpunit/phpunit": "^9.0" }, "suggest": { "ext-intl": "Allows for more locales besides the default \"en\" when formatting money values.",