Skip to content

Commit

Permalink
build with PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Nov 13, 2021
1 parent 7c3daa5 commit 2c40588
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
php-version: [ '7.4', '8.0' ]
php-version: [ '7.4', '8.0', '8.1' ]

steps:
- name: Checkout
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [ '7.1', '7.2', '7.3', '7.4', '8.0' ]
php-version: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
deps: [ 'lowest', 'newest' ]
exclude:
- php-version: '7.2'
Expand All @@ -69,6 +69,8 @@ jobs:
deps: lowest
- php-version: '8.0'
deps: lowest
- php-version: '8.1'
deps: lowest

runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"nette/caching": "~2.5 || ~3.0",
"nette/utils": "~2.5 || ~3.0",
"nette/tokenizer": "~2.3 || ~3.0",
"nextras/dbal": "~4.0"
"nextras/dbal": "~4.0@dev"
},
"require-dev": {
"nette/bootstrap": "~2.4 || ~3.0",
Expand Down
1 change: 1 addition & 0 deletions src/Collection/EntityIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function current(): IEntity
}


#[\ReturnTypeWillChange]
public function key()
{
return $this->position;
Expand Down
1 change: 1 addition & 0 deletions src/Collection/MultiEntityIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public function current(): IEntity
}


#[\ReturnTypeWillChange]
public function key()
{
return $this->position;
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Reflection/PropertyMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function isValid(&$value): bool
$value = $tmp->setTimezone(new DateTimeZone(date_default_timezone_get()));
return true;

} elseif (ctype_digit($value)) {
} elseif (ctype_digit((string) $value)) {
$value = new $rawType("@{$value}");
return true;
}
Expand Down

0 comments on commit 2c40588

Please sign in to comment.