Skip to content

Commit

Permalink
Merge 43703cf into 123a35e
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Nov 4, 2021
2 parents 123a35e + 43703cf commit 6f2c9a3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Expand Up @@ -13,7 +13,7 @@ on:
- v*.*

env:
php-extensions: mbstring, intl, mysqli, pgsql, sqlsrv-5.9.0beta2
php-extensions: mbstring, intl, mysqli, pgsql, sqlsrv-5.10.0-beta1
php-extensions-key: v2
php-tools: "composer:v2, pecl"

Expand All @@ -25,7 +25,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 @@ -59,7 +59,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 @@ -70,6 +70,8 @@ jobs:
deps: lowest
- php-version: '8.0'
deps: lowest
- php-version: '8.1'
deps: lowest

runs-on: ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions src/Collection/EntityIterator.php
Expand Up @@ -63,6 +63,7 @@ public function current(): IEntity
}


#[\ReturnTypeWillChange]
public function key()
{
return $this->position;
Expand Down
2 changes: 1 addition & 1 deletion src/Collection/ICollection.php
Expand Up @@ -190,7 +190,7 @@ public function fetchPairs(?string $key = null, ?string $value = null): array;
* @return Iterator<int, IEntity>
* @phpstan-return Iterator<int, E>
*/
public function getIterator();
public function getIterator(): Iterator;


/**
Expand Down
1 change: 1 addition & 0 deletions src/Collection/MultiEntityIterator.php
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
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 6f2c9a3

Please sign in to comment.