Skip to content

Commit c41d5c7

Browse files
authored
Merge pull request #34 from hypervel/feature/replcae-laminas-mime
Feat: support PHP 8.4
2 parents 4231056 + 79c5a27 commit c41d5c7

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
swoole: "5.1.6"
1818
- php: "8.3"
1919
swoole: "5.1.6"
20+
- php: "8.4"
21+
swoole: "6.0.2"
2022

2123
name: PHP ${{ matrix.php }} (swoole-${{ matrix.swoole }})
2224

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
swoole: "5.1.6"
1818
- php: "8.3"
1919
swoole: "5.1.6"
20+
- php: "8.4"
21+
swoole: "6.0.2"
2022

2123
name: PHP ${{ matrix.php }} (swoole-${{ matrix.swoole }})
2224

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@
122122
"tijsverkoyen/css-to-inline-styles": "^2.2.5",
123123
"symfony/process": "^6.2",
124124
"dragonmantank/cron-expression": "^3.3.2",
125-
"friendsofhyperf/redis-subscriber": "~3.1.0"
125+
"friendsofhyperf/redis-subscriber": "~3.1.0",
126+
"hypervel/laminas-mime": "^0.1.0"
126127
},
127128
"replace": {
128129
"hypervel/auth": "self.version",
@@ -172,7 +173,7 @@
172173
},
173174
"require-dev": {
174175
"ably/ably-php": "^1.0",
175-
"fakerphp/faker": "^2.0",
176+
"fakerphp/faker": "^1.24.1",
176177
"filp/whoops": "^2.15",
177178
"friendsofphp/php-cs-fixer": "^3.57.2",
178179
"hyperf/devtool": "~3.1.0",
@@ -184,7 +185,7 @@
184185
"league/flysystem-google-cloud-storage": "^3.0",
185186
"league/flysystem-path-prefixing": "^3.3",
186187
"league/flysystem-read-only": "^3.3",
187-
"mockery/mockery": "^1.5.1",
188+
"mockery/mockery": "1.6.x-dev",
188189
"nunomaduro/collision": "^8.5",
189190
"pda/pheanstalk": "v5.0.9",
190191
"phpstan/phpstan": "^1.11.5",

src/cache/src/LimitedMaxHeap.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ public function __construct(protected int $limit)
1212
{
1313
}
1414

15-
public function insert(mixed $value): bool
15+
public function insert(mixed $value): true
1616
{
1717
if ($this->count() < $this->limit) {
18-
return parent::insert($value);
18+
parent::insert($value);
19+
return true;
1920
}
2021

2122
if ($this->compare($value, $this->top()) < 0) {
2223
$this->extract();
23-
24-
return parent::insert($value);
2524
}
2625

27-
return false;
26+
parent::insert($value);
27+
28+
return true;
2829
}
2930
}

0 commit comments

Comments
 (0)