From 5b33011d3ab4f019ff982737fea89c621b296512 Mon Sep 17 00:00:00 2001 From: Lars Lauger Date: Thu, 31 Oct 2024 16:19:56 +0100 Subject: [PATCH 1/2] fix: Remove php deprecations --- .../Unit/Domain/Service/ArrayQueryResult.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Tests/Unit/Domain/Service/ArrayQueryResult.php b/Tests/Unit/Domain/Service/ArrayQueryResult.php index 93b5726..06cc807 100644 --- a/Tests/Unit/Domain/Service/ArrayQueryResult.php +++ b/Tests/Unit/Domain/Service/ArrayQueryResult.php @@ -20,52 +20,52 @@ public function __construct(array $result) $this->iterator = (new ArrayObject($result))->getIterator(); } - public function current() + public function current(): mixed { return $this->iterator->current(); } - public function next() + public function next(): void { $this->iterator->next(); } - public function key() + public function key(): mixed { return $this->iterator->key(); } - public function valid() + public function valid(): bool { return $this->iterator->valid(); } - public function rewind() + public function rewind(): void { $this->iterator->rewind(); } - public function offsetExists($offset) + public function offsetExists(mixed $offset): bool { return $this->iterator->offsetExists($offset); } - public function offsetGet($offset) + public function offsetGet(mixed $offset): mixed { return $this->iterator->offsetGet($offset); } - public function offsetSet($offset, $value) + public function offsetSet(mixed $offset, mixed $value): void { $this->iterator->offsetSet($offset, $value); } - public function offsetUnset($offset) + public function offsetUnset(mixed $offset): void { $this->iterator->offsetUnset($offset); } - public function count() + public function count(): int { return $this->iterator->count(); } From 18210b5a8bb893db8d56b9e2dcb9a7fc97586405 Mon Sep 17 00:00:00 2001 From: Lars Lauger Date: Thu, 31 Oct 2024 16:33:16 +0100 Subject: [PATCH 2/2] feat: Drop PHP 7.4 support --- .github/workflows/unittests.yml | 2 +- composer.json | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index fe9e029..a8a8b77 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - php-version: [7.4, 8.0, 8.1] + php-version: [8.0, 8.1, 8.2, 8.3] flow-version: [7.3, 8.0] exclude: diff --git a/composer.json b/composer.json index c84bbaf..1b08e90 100644 --- a/composer.json +++ b/composer.json @@ -1,13 +1,13 @@ { - "description": "Custom migrations", - "homepage": "http://websolutions.netlogix.de/", + "name": "netlogix/migrations", + "description": "Custom migrations for Flow Projects", + "type": "neos-package", + "homepage": "https://websolutions.netlogix.de/", "license": [ "MIT" ], - "name": "netlogix/migrations", - "type": "neos-package", "require": { - "php": "^7.4 || ~8.0 || ~8.1", + "php": ">=8.0 <8.4", "neos/flow": "^7.3 || ^8.0", "doctrine/migrations": "^3.1" }, @@ -53,4 +53,4 @@ "FLOW_CONTEXT=Testing/Unit bin/phpunit -c phpunit.xml.dist --bootstrap \"Build/BuildEssentials/PhpUnit/UnitTestBootstrap.php\"" ] } -} \ No newline at end of file +}