Skip to content

Commit

Permalink
Merge pull request #14 from netlogix/fix/php-deprecations
Browse files Browse the repository at this point in the history
fix: Remove php deprecations
  • Loading branch information
stephanschuler authored Oct 31, 2024
2 parents 9debe5d + 18210b5 commit ecd6300
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 10 additions & 10 deletions Tests/Unit/Domain/Service/ArrayQueryResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down Expand Up @@ -53,4 +53,4 @@
"FLOW_CONTEXT=Testing/Unit bin/phpunit -c phpunit.xml.dist --bootstrap \"Build/BuildEssentials/PhpUnit/UnitTestBootstrap.php\""
]
}
}
}

0 comments on commit ecd6300

Please sign in to comment.