From 71b12f952d8be69a239989db2fe08314a5189e3b Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 27 Aug 2023 11:15:36 +0100 Subject: [PATCH] Update SA tools (#162) --- .github/workflows/static.yml | 3 --- src/RejectionException.php | 2 +- tests/NotPromiseInstance.php | 2 +- tests/Thennable.php | 2 +- vendor-bin/php-cs-fixer/composer.json | 2 +- vendor-bin/phpstan/composer.json | 4 ++-- vendor-bin/psalm/composer.json | 2 +- 7 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index e0f0b65..0888df0 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -23,7 +23,6 @@ jobs: php-version: '7.4' coverage: none extensions: mbstring - tools: composer - name: Download dependencies run: composer update --no-interaction --no-progress @@ -48,7 +47,6 @@ jobs: php-version: '7.4' coverage: none extensions: mbstring - tools: composer - name: Download dependencies run: composer update --no-interaction --no-progress @@ -73,7 +71,6 @@ jobs: php-version: '7.4' coverage: none extensions: mbstring - tools: composer - name: Download dependencies run: composer update --no-interaction --no-progress diff --git a/src/RejectionException.php b/src/RejectionException.php index 47dca86..72a81ba 100644 --- a/src/RejectionException.php +++ b/src/RejectionException.php @@ -18,7 +18,7 @@ class RejectionException extends \RuntimeException * @param mixed $reason Rejection reason. * @param string|null $description Optional description. */ - public function __construct($reason, ?string $description = null) + public function __construct($reason, string $description = null) { $this->reason = $reason; diff --git a/tests/NotPromiseInstance.php b/tests/NotPromiseInstance.php index c470d8c..dc6c2be 100644 --- a/tests/NotPromiseInstance.php +++ b/tests/NotPromiseInstance.php @@ -9,7 +9,7 @@ class NotPromiseInstance extends Thennable implements PromiseInterface { - private $nextPromise = null; + private $nextPromise; public function __construct() { diff --git a/tests/Thennable.php b/tests/Thennable.php index e3ffbc0..2484148 100644 --- a/tests/Thennable.php +++ b/tests/Thennable.php @@ -8,7 +8,7 @@ class Thennable { - private $nextPromise = null; + private $nextPromise; public function __construct() { diff --git a/vendor-bin/php-cs-fixer/composer.json b/vendor-bin/php-cs-fixer/composer.json index c9dd5ee..ffac55c 100644 --- a/vendor-bin/php-cs-fixer/composer.json +++ b/vendor-bin/php-cs-fixer/composer.json @@ -1,7 +1,7 @@ { "require": { "php": "^7.4 || ^8.0", - "friendsofphp/php-cs-fixer": "3.16.0" + "friendsofphp/php-cs-fixer": "3.23.0" }, "config": { "preferred-install": "dist" diff --git a/vendor-bin/phpstan/composer.json b/vendor-bin/phpstan/composer.json index 711507c..fc48f6d 100644 --- a/vendor-bin/phpstan/composer.json +++ b/vendor-bin/phpstan/composer.json @@ -1,8 +1,8 @@ { "require": { "php": "^7.4 || ^8.0", - "phpstan/phpstan": "1.10.11", - "phpstan/phpstan-deprecation-rules": "1.1.3" + "phpstan/phpstan": "1.10.32", + "phpstan/phpstan-deprecation-rules": "1.1.4" }, "config": { "preferred-install": "dist" diff --git a/vendor-bin/psalm/composer.json b/vendor-bin/psalm/composer.json index ab96f2c..fae19dc 100644 --- a/vendor-bin/psalm/composer.json +++ b/vendor-bin/psalm/composer.json @@ -1,7 +1,7 @@ { "require": { "php": "^7.4 || ^8.0", - "psalm/phar": "5.9.0" + "psalm/phar": "5.15.0" }, "config": { "preferred-install": "dist"