Skip to content

Commit 994e6cb

Browse files
authored
Merge pull request #1 from erementyk/patch-1
Исправление для php 8.2+. Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated
2 parents 57d9bfc + 30f2403 commit 994e6cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/WebRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct()
1919
$request = self::createFromGlobals($this);
2020
if (($app = App::instance()) instanceof WebApp) {
2121
$request->withUri(
22-
str_replace($app->uri()->getPath(), '', $request->getUri())
22+
str_replace($app->uri()->getPath() ?? '', '', $request->getUri())
2323
);
2424
$app::set('request', $this);
2525
}

0 commit comments

Comments
 (0)