8000 Adjust exception message · laravel/framework@80913c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80913c9

Browse files
committed
Adjust exception message
1 parent 8c989df commit 80913c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ protected function mergeAttributesFromClassCasts()
572572
: $object->__toString();
573573

574574
if ($attributeCount !== count($castedAttributes)) {
575-
throw new LogicException("Class cast {$attribute} must return {$attributeCount} attributes");
575+
throw new LogicException("Class cast {$attribute} must return {$attributeCount} attribute(s)");
576576
}
577577

578578
$this->attributes = array_merge(

0 commit comments

Comments
 (0)
0