diff --git a/composer.json b/composer.json index 23b6b9e..898e74e 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ { "name": "Franyer Sánchez", "email": "franyeradriansanchez@gmail.com", - "homepage": "https://faslatam.000webhostapp.com", + "homepage": "https://faslatam.42web.io", "role": "Maintainer" }, { @@ -44,11 +44,11 @@ "flightphp/runway": "^0.2.3 || ^1.0", "league/container": "^4.2", "level-2/dice": "^4.0", - "phpstan/extension-installer": "^1.3", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.5", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpunit/phpunit": "^9.6", "rregeer/phpunit-coverage-check": "^0.3.1", - "squizlabs/php_codesniffer": "^3.8" + "squizlabs/php_codesniffer": "^3.11" }, "config": { "allow-plugins": { diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 79f3ff0..e320c09 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -31,6 +31,7 @@ + diff --git a/tests/FlightTest.php b/tests/FlightTest.php index fbc8eb6..7eb3927 100644 --- a/tests/FlightTest.php +++ b/tests/FlightTest.php @@ -209,7 +209,7 @@ class FlightTest extends TestCase Flight::route('/path1/@param:[a-zA-Z0-9]{2,3}', function () { echo 'I win'; }, false, 'path1'); - $url = Flight::getUrl('path1', [ 'param' => 123 ]); + $url = Flight::getUrl('path1', ['param' => 123]); $this->assertEquals('/path1/123', $url); } @@ -316,7 +316,7 @@ class FlightTest extends TestCase Flight::register('response', $mock_response_class_name); Flight::route('/stream', function () { echo 'stream'; - })->streamWithHeaders(['Content-Type' => 'text/plain', 'X-Test' => 'test', 'status' => 200 ]); + })->streamWithHeaders(['Content-Type' => 'text/plain', 'X-Test' => 'test', 'status' => 200]); Flight::request()->url = '/stream'; $this->expectOutputString('stream'); Flight::start(); diff --git a/tests/ViewTest.php b/tests/ViewTest.php index e6d9d02..b8611c5 100644 --- a/tests/ViewTest.php +++ b/tests/ViewTest.php @@ -220,20 +220,22 @@ class ViewTest extends TestCase public static function renderDataProvider(): array { $html1 = <<<'html' -
Hi
-
+
Hi
+
+ + html; - html; $html2 = <<<'html' - + - + - html; + html; $html1 = str_replace("\n", PHP_EOL, $html1); $html2 = str_replace("\n", PHP_EOL, $html2); + return [ [ $html1, diff --git a/tests/commands/RouteCommandTest.php b/tests/commands/RouteCommandTest.php index 226d9a3..8a843ea 100644 --- a/tests/commands/RouteCommandTest.php +++ b/tests/commands/RouteCommandTest.php @@ -54,7 +54,7 @@ class RouteCommandTest extends TestCase protected function newApp(string $name, string $version = '') { - $app = new Application($name, $version ?: '0.0.1', fn () => false); + $app = new Application($name, $version ?: '0.0.1', fn() => false); return $app->io(new Interactor(static::$in, static::$ou)); }