Skip to content

Commit 9ebf1a1

Browse files
authored
Merge pull request #2 from bastien-phi/php8.1
Fix php8.1 deprecations, run tests on php8.1
2 parents 5a82da2 + 06aae8a commit 9ebf1a1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
php: [7.4, 8.0]
15+
php: [7.4, 8.0, 8.1]
1616

1717
name: PHP ${{ matrix.php }}
1818

src/UnicodeString.php

+2
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@ public function offsetGet($offset): string
862862
/**
863863
* @inheritDoc
864864
*/
865+
#[\ReturnTypeWillChange]
865866
public function offsetSet($offset, $value)
866867
{
867868
// Allow negative index
@@ -897,6 +898,7 @@ public function offsetSet($offset, $value)
897898
/**
898899
* @inheritDoc
899900
*/
901+
#[\ReturnTypeWillChange]
900902
public function offsetUnset($offset)
901903
{
902904
throw new RuntimeException("Invalid operation");

0 commit comments

Comments
 (0)