Skip to content

Commit 31c5e2a

Browse files
committed
Merge branch 'hotfix/5.2.1'
2 parents b7032be + e016d9d commit 31c5e2a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. This projec
55

66
## Unreleased
77

8+
## [5.2.1] - 2025-10-10
9+
10+
### Changed
11+
12+
- Improve exception message when resource container cannot resolve a value to a JSON:API resource.
13+
814
## [5.2.0] - 2025-02-24
915

1016
### Added

src/Core/Resources/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function resolve($value)
5757

5858
throw new LogicException(sprintf(
5959
'Unable to resolve %s to a resource object. Check your resource configuration.',
60-
is_object($value) ? get_class($value) : 'non-object value'
60+
is_object($value) ? get_class($value) : get_debug_type($value),
6161
));
6262
}
6363

0 commit comments

Comments
 (0)