Skip to content

Commit 335a02b

Browse files
authored
Fix mutation tests for PHP 8.1 (#14)
1 parent 8912689 commit 335a02b

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/mssql.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
name: PHP ${{ matrix.php }}-mssql-${{ matrix.mssql }}
2727

2828
env:
29-
extensions: pdo, pdo_sqlsrv
29+
extensions: pdo, pdo_sqlsrv, pdo_sqlsrv-5.10.0-beta1
3030
key: cache
3131

3232
runs-on: ${{ matrix.os }}
@@ -48,6 +48,8 @@ jobs:
4848
exclude:
4949
- php: 8.0
5050
mssql: server:2017-latest
51+
- php: 8.1
52+
mssql: server:2017-latest
5153

5254
services:
5355
mssql:

.github/workflows/mutation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
name: PHP ${{ matrix.php }}-${{ matrix.os }}
2727

2828
env:
29-
extensions: pdo, pdo_mysql, pdo_oci, pdo_pgsql, pdo_sqlsrv, oci8
29+
extensions: pdo, pdo_mysql, pdo_oci, pdo_pgsql, pdo_sqlsrv, pdo_sqlsrv-5.10.0-beta1, oci8
3030

3131
runs-on: ${{ matrix.os }}
3232

@@ -40,7 +40,7 @@ jobs:
4040

4141
services:
4242
mssql:
43-
image: mcr.microsoft.com/mssql/server:2017-latest
43+
image: mcr.microsoft.com/mssql/server:2019-latest
4444
env:
4545
SA_PASSWORD: YourStrong!Passw0rd
4646
ACCEPT_EULA: Y

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ This package implements database-based [PSR-16](https://www.php-fig.org/psr/psr-
2020

2121
|Packages| PHP | Versions | CI-Actions
2222
|:------:|:----:|:------------------------:|:-----------:|
23-
[[db-mssql]](https://github.com/yiisoft/db-mssql)|**7.4 - 8.0**| **2017 - 2019**|[![mssql](https://github.com/yiisoft/cache-db/actions/workflows/mssql.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/mssql.yml) | |
24-
[[db-mysql]](https://github.com/yiisoft/db-mysql)|**7.4 - 8.0**| **5.7 - 8.0**|[![mysql](https://github.com/yiisoft/cache-db/actions/workflows/mysql.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/mysql.yml)|
25-
[[db-oracle]](https://github.com/yiisoft/db-oracle)|**7.4 - 8.0**| **11c - 12c**|[![oracle](https://github.com/yiisoft/cache-db/actions/workflows/oracle.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/oracle.yml)|
26-
|[[db-pgsql]](https://github.com/yiisoft/db-pgsql)|**7.4 - 8.0**| **9.0 - 14.0**|[![pgsql](https://github.com/yiisoft/cache-db/actions/workflows/pgsql.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/pgsql.yml)|
27-
|[[db-sqlite]](https://github.com/yiisoft/db-sqlite)|**7.4 - 8.0**| **3:latest**|[![sqlite](https://github.com/yiisoft/cache-db/actions/workflows/sqlite.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/sqlite.yml)|
23+
[[db-mssql]](https://github.com/yiisoft/db-mssql)|**7.4 - 8.1**| **2017 - 2019**|[![mssql](https://github.com/yiisoft/cache-db/actions/workflows/mssql.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/mssql.yml) | |
24+
[[db-mysql]](https://github.com/yiisoft/db-mysql)|**7.4 - 8.1**| **5.7 - 8.0**|[![mysql](https://github.com/yiisoft/cache-db/actions/workflows/mysql.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/mysql.yml)|
25+
[[db-oracle]](https://github.com/yiisoft/db-oracle)|**7.4 - 8.1**| **11c - 12c**|[![oracle](https://github.com/yiisoft/cache-db/actions/workflows/oracle.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/oracle.yml)|
26+
|[[db-pgsql]](https://github.com/yiisoft/db-pgsql)|**7.4 - 8.1**| **9.0 - 14.0**|[![pgsql](https://github.com/yiisoft/cache-db/actions/workflows/pgsql.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/pgsql.yml)|
27+
|[[db-sqlite]](https://github.com/yiisoft/db-sqlite)|**7.4 - 8.1**| **3:latest**|[![sqlite](https://github.com/yiisoft/cache-db/actions/workflows/sqlite.yml/badge.svg)](https://github.com/yiisoft/cache-db/actions/workflows/sqlite.yml)|
2828

2929
## Requirements
3030

tests/DbCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function iterableProvider(): array
284284
'IteratorAggregate' => [
285285
['a' => 1, 'b' => 2,],
286286
new class () implements IteratorAggregate {
287-
public function getIterator()
287+
public function getIterator(): ArrayIterator
288288
{
289289
return new ArrayIterator(['a' => 1, 'b' => 2,]);
290290
}

0 commit comments

Comments
 (0)