diff --git a/composer.json b/composer.json index 3554cef..7793015 100644 --- a/composer.json +++ b/composer.json @@ -15,27 +15,27 @@ } ], "require": { - "php": ">=7.0.0", - "fzaninotto/faker": "~1.8", - "illuminate/routing": "^5.5|^6.0", - "illuminate/support": "^5.5|^6.0", - "illuminate/console": "^5.5|^6.0", + "php": ">=7.2.0", + "fzaninotto/faker": "^1.8", + "illuminate/routing": "^5.7|^6.0", + "illuminate/support": "^5.7|^6.0", + "illuminate/console": "^5.7|^6.0", "mpociot/documentarian": "^0.3.0", "mpociot/reflection-docblock": "^1.0.1", "ramsey/uuid": "^3.8", - "league/flysystem": "^1.0" + "league/flysystem": "^1.0", + "nunomaduro/collision": "^3.0" }, "require-dev": { - "orchestra/testbench": "3.5.* || 3.6.* || 3.7.*", - "phpunit/phpunit": "^6.0.0 || ^7.4.0", - "dingo/api": "2.0.0-alpha1", + "orchestra/testbench": "^3.7.0 || ^4.0", + "phpunit/phpunit": "^7.5.0", + "dingo/api": "^2.3.0", "mockery/mockery": "^1.2.0", "league/fractal": "^0.17.0", - "phpstan/phpstan": "^0.9.0 || ^0.10.0 || ^0.11.15" + "phpstan/phpstan": "^0.11.15" }, "suggest": { - "league/fractal": "Required for transformers support", - "nunomaduro/collision": "For better reporting of errors that are thrown when generating docs" + "league/fractal": "Required for transformers support" }, "autoload": { "psr-4": { diff --git a/tests/GenerateDocumentationTest.php b/tests/GenerateDocumentationTest.php index 6585028..80dedd0 100644 --- a/tests/GenerateDocumentationTest.php +++ b/tests/GenerateDocumentationTest.php @@ -19,15 +19,7 @@ class GenerateDocumentationTest extends TestCase { use TestHelpers; - /** - * Setup the test environment. - */ - public function setUp() - { - parent::setUp(); - } - - public function tearDown() + public function tearDown(): void { Utils::deleteDirectoryAndContents('/public/docs'); } diff --git a/tests/Unit/DingoGeneratorTest.php b/tests/Unit/DingoGeneratorTest.php index 1d10554..636ade8 100644 --- a/tests/Unit/DingoGeneratorTest.php +++ b/tests/Unit/DingoGeneratorTest.php @@ -16,7 +16,7 @@ class DingoGeneratorTest extends GeneratorTestCase ]; } - public function setUp() + public function setUp(): void { parent::setUp(); diff --git a/tests/Unit/GeneratorTestCase.php b/tests/Unit/GeneratorTestCase.php index 23de483..a91c238 100644 --- a/tests/Unit/GeneratorTestCase.php +++ b/tests/Unit/GeneratorTestCase.php @@ -48,7 +48,7 @@ abstract class GeneratorTestCase extends TestCase /** * Setup the test environment. */ - public function setUp() + public function setUp(): void { parent::setUp(); diff --git a/tests/Unit/RouteMatcherTest.php b/tests/Unit/RouteMatcherTest.php index 9e0a344..2857add 100644 --- a/tests/Unit/RouteMatcherTest.php +++ b/tests/Unit/RouteMatcherTest.php @@ -15,7 +15,7 @@ class RouteMatcherTest extends TestCase */ private $matcher; - protected function setUp() + protected function setUp(): void { parent::setUp(); $this->matcher = new RouteMatcher();