Skip to content

Commit 07e8096

Browse files
committed
Fix deprecation notice on PHP 8.1
1 parent 7cab954 commit 07e8096

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [0.2.0] - 2022-06-21
99
### Fixed
1010
- Fix `EloquentAdapter::filterByIds()` getting key name from query model instead of adapter model
11+
- Fix deprecation notice on PHP 8.1
1112

1213
## [0.2.0-beta.6] - 2022-04-22
1314
### Changed

src/JsonApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public function getBasePath(): string
315315
*/
316316
public function stripBasePath(string $path): string
317317
{
318-
$basePath = parse_url($this->basePath, PHP_URL_PATH);
318+
$basePath = parse_url($this->basePath, PHP_URL_PATH) ?: '';
319319

320320
$len = strlen($basePath);
321321

0 commit comments

Comments
 (0)