Skip to content

Commit ff054c8

Browse files
authored
Merge pull request #260 from phpfui/PHP85
Php 8.5 support
2 parents 153b8f2 + 476ad26 commit ff054c8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
12-
php: [8.4, 8.3, 8.2, 8.1, 8.0]
12+
php: [8.5, 8.4, 8.3, 8.2, 8.1, 8.0]
1313
stability: [prefer-stable]
1414

1515
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

src/Message/MessagePart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ public function __construct(
6767

6868
public function attach(SplObserver $observer) : void
6969
{
70-
$this->observers->attach($observer);
70+
$this->observers->offsetSet($observer);
7171
}
7272

7373
public function detach(SplObserver $observer) : void
7474
{
75-
$this->observers->detach($observer);
75+
$this->observers->offsetUnset($observer);
7676
}
7777

7878
public function notify() : void

0 commit comments

Comments
 (0)