We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f918088 commit 0b70da1Copy full SHA for 0b70da1
1 file changed
src/Entity/DispatchingEntityIdParser.php
@@ -68,7 +68,11 @@ public function parse( $idSerialization ) {
68
*/
69
private function assertIdIsString( $idSerialization ) {
70
if ( !is_string( $idSerialization ) ) {
71
- throw new EntityIdParsingException( '$idSerialization must be a string' );
+ throw new EntityIdParsingException(
72
+ '$idSerialization must be a string, got ' . ( is_object( $idSerialization )
73
+ ? get_class( $idSerialization )
74
+ : getType( $idSerialization ) )
75
+ );
76
}
77
78
0 commit comments