From 8ead97449dcacfa98b709772412570140c74d52e Mon Sep 17 00:00:00 2001 From: Paul Water Date: Sun, 29 Sep 2024 13:07:17 +0200 Subject: [PATCH] Align with changes in dependencies. --- .gitignore | 4 +--- composer.json | 16 +++++++--------- phpunit.xml | 18 ++++++++++-------- src/Page/FlashMessageRemovePage.php | 2 +- 4 files changed, 19 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 3401c2c..aa1fe9a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,7 @@ /.idea/ -/.phpunit.result.cache +/.phpunit.cache/ /bin/ /composer.lock -/custom.task.properties -/custom.type.properties /node_modules/ /package-lock.json /plaisio-assets.csv diff --git a/composer.json b/composer.json index 005fc15..deecb31 100644 --- a/composer.json +++ b/composer.json @@ -16,20 +16,18 @@ "plaisio/helper-html": "^4.1.0", "plaisio/kernel": "^3.2.1", "plaisio/page-core": "^1.5.0", - "plaisio/request": "^0.13.1", + "plaisio/request": "^1.0.0", "plaisio/response-core": "^2.8.0", - "plaisio/session-core": "^5.2.0", - "symfony/polyfill-uuid": "^1.27.0" + "plaisio/session-core": "^5.4.0", + "symfony/polyfill-uuid": "^1.31.0" }, - "minimum-stability": "dev", - "prefer-stable": true, "require-dev": { "phing/phing": "^3.0.0", - "phpunit/phpunit": "^9.6.3", + "phpunit/phpunit": "^10.5.35", "plaisio/console-kernel": "^1.0.1", - "plaisio/console-type-script": "^1.0.0", - "plaisio/phing-extensions": "^3.2.0", - "setbased/phing-extensions": "^3.1.0" + "plaisio/console-type-script": "^1.1.0", + "plaisio/phing-extensions": "^3.3.0", + "setbased/phing-extensions": "^3.2.0" }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index c62cbda..600e983 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,12 +1,6 @@ - - - - src - - - vendor/setbased - + + @@ -18,4 +12,12 @@ + + + src + + + vendor/setbased + + diff --git a/src/Page/FlashMessageRemovePage.php b/src/Page/FlashMessageRemovePage.php index 2591ac6..55a0543 100644 --- a/src/Page/FlashMessageRemovePage.php +++ b/src/Page/FlashMessageRemovePage.php @@ -32,7 +32,7 @@ public static function getUrl(): string */ public function checkAuthorization(): void { - if (!Nub::$nub->request->isPost()) + if (!Nub::$nub->request->isPost) { throw new BadRequestException('POST expected'); }