From e4e4eb0a577eb3f63bb71f15a67c612c0c545181 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Fri, 24 Jul 2020 21:54:00 +0200 Subject: [PATCH] chore: bumps deps --- composer.json | 22 ++++++++------------- rector.yaml | 2 -- src/Laravel/Commands/PestDatasetCommand.php | 3 ++- src/Laravel/Commands/PestTestCommand.php | 3 ++- 4 files changed, 12 insertions(+), 18 deletions(-) diff --git a/composer.json b/composer.json index dc98600d..837e6f11 100644 --- a/composer.json +++ b/composer.json @@ -18,12 +18,12 @@ ], "require": { "php": "^7.3", - "nunomaduro/collision": "^5.0.0-BETA3", - "pestphp/pest-plugin": "^0.2", - "pestphp/pest-plugin-coverage": "^0.2", - "pestphp/pest-plugin-init": "^0.2", - "phpunit/phpunit": "^9.1.4", - "sebastian/environment": "^5.1" + "nunomaduro/collision": "^5.0.0-BETA4", + "pestphp/pest-plugin": "^0.3", + "pestphp/pest-plugin-coverage": "^0.3", + "pestphp/pest-plugin-init": "^0.3", + "phpunit/phpunit": "^9.2.6", + "sebastian/environment": "^5.1.2" }, "autoload": { "psr-4": { @@ -43,16 +43,10 @@ ] }, "require-dev": { - "ergebnis/phpstan-rules": "^0.15.0", - "friendsofphp/php-cs-fixer": "^2.16.3", "illuminate/console": "^7.16.1", "illuminate/support": "^7.16.1", "mockery/mockery": "^1.4.0", - "phpstan/phpstan": "^0.12.30", - "phpstan/phpstan-strict-rules": "^0.12.2", - "rector/rector": "^0.7.37", - "symfony/var-dumper": "^5.1.2", - "thecodingmachine/phpstan-strict-rules": "^0.12.0" + "pestphp/pest-dev-tools": "dev-master" }, "minimum-stability": "dev", "prefer-stable": true, @@ -79,7 +73,7 @@ }, "extra": { "branch-alias": { - "dev-master": "0.2.x-dev" + "dev-master": "0.3.x-dev" }, "pest": { "plugins": [ diff --git a/rector.yaml b/rector.yaml index 90dd8116..317a9e8e 100644 --- a/rector.yaml +++ b/rector.yaml @@ -4,11 +4,9 @@ parameters: - 'action-injection-to-constructor-injection' - 'array-str-functions-to-static-call' - 'celebrity' - - 'doctrine' - 'phpstan' - 'phpunit-code-quality' - 'solid' - - 'early-return' - 'doctrine-code-quality' - 'code-quality' - 'php71' diff --git a/src/Laravel/Commands/PestDatasetCommand.php b/src/Laravel/Commands/PestDatasetCommand.php index 703f6264..8d3ccc8e 100644 --- a/src/Laravel/Commands/PestDatasetCommand.php +++ b/src/Laravel/Commands/PestDatasetCommand.php @@ -61,7 +61,8 @@ final class PestDatasetCommand extends Command $element = Str::singular($name); $contents = str_replace('{dataset_element}', $element, $contents); File::put($target, str_replace('{dataset_name}', $name, $contents)); + $message = sprintf('`%s` created successfully.', $relativePath); - $this->output->success(sprintf('`%s` created successfully.', $relativePath)); + $this->output->success($message); } } diff --git a/src/Laravel/Commands/PestTestCommand.php b/src/Laravel/Commands/PestTestCommand.php index 28c474d3..112b394b 100644 --- a/src/Laravel/Commands/PestTestCommand.php +++ b/src/Laravel/Commands/PestTestCommand.php @@ -64,7 +64,8 @@ final class PestTestCommand extends Command $name = Str::endsWith($name, 'test') ? mb_substr($name, 0, -4) : $name; File::put($target, str_replace('{name}', $name, $contents)); + $message = sprintf('`%s` created successfully.', $relativePath); - $this->output->success(sprintf('`%s` created successfully.', $relativePath)); + $this->output->success($message); } }