Skip to content

Commit 82d0d93

Browse files
committed
test all PHP versions
1 parent afa6143 commit 82d0d93

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.github/workflows/test-unit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: ['8.0']
18+
php: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
1919
type: ['Phpunit']
2020
include:
2121
- php: '8.0'
2222
type: 'CodingStyle'
23-
- php: '8.0'
23+
- php: '8.3'
2424
type: 'StaticAnalysis'
2525
steps:
2626
- name: Checkout

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ cache:
55
- $HOME/.composer/cache
66

77
php:
8-
- 7.2
98
- 7.3
109
- 7.4
1110
- nightly

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ php-lock/lock follows semantic versioning. Read more on [semver.org][1].
1919

2020
## Requirements
2121

22-
- PHP 7.2 or above
22+
- PHP 7.3 or above
2323
- Optionally [nrk/predis][2] to use the Predis locks.
2424
- Optionally the [php-pcntl][3] extension to enable locking with `flock()`
2525
without busy waiting in CLI scripts.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
],
3535
"homepage": "https://github.com/malkusch/lock",
3636
"require": {
37-
"php": ">=7.2 <8.4",
37+
"php": ">=7.3 <8.4",
3838
"psr/log": "^1 || ^2 || ^3"
3939
},
4040
"require-dev": {

tests/mutex/PHPRedisMutexTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
if (PHP_MAJOR_VERSION >= 8) {
1212
trait RedisTestTrait
1313
{
14+
#[\Override]
1415
public function eval($script, $args = [], $numKeys = 0): mixed
1516
{
1617
return $this->_eval($script, $args, $numKeys);
1718
}
1819

20+
#[\Override]
1921
public function set($key, $value, $options = null): /* Redis|string| */ bool
2022
{
2123
return $this->_set($key, $value, $options);
@@ -27,6 +29,7 @@ trait RedisTestTrait
2729
/**
2830
* @return mixed
2931
*/
32+
#[\Override]
3033
public function eval($script, $args = [], $numKeys = 0)
3134
{
3235
return $this->_eval($script, $args, $numKeys);
@@ -35,6 +38,7 @@ public function eval($script, $args = [], $numKeys = 0)
3538
/**
3639
* @return Redis|string|bool
3740
*/
41+
#[\Override]
3842
public function set($key, $value, $options = null)
3943
{
4044
return $this->_set($key, $value, $options);

0 commit comments

Comments
 (0)