Skip to content

Commit 0febcae

Browse files
committed
update for php8.4
1 parent f021f0b commit 0febcae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"ext-mbstring": "*",
3030
"php-di/php-di": "^7.0.1",
3131
"psr/container": "^1.0|^2.0",
32-
"slim/slim": "^4.8"
32+
"slim/slim": "^4.8",
33+
"symfony/polyfill-php84": "^1.30"
3334
},
3435
"require-dev": {
3536
"bnf/phpstan-psr-container": "^1.0",

src/ContainerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function get(string $name): mixed
4545
);
4646
} catch (Throwable $exception) {
4747
throw new DependencyException(
48-
rtrim($exception->getMessage(), '.') . '.',
48+
mb_rtrim($exception->getMessage(), '.') . '.',
4949
(int) $exception->getCode(),
5050
$exception,
5151
);

0 commit comments

Comments
 (0)