Skip to content

Commit 6a9d015

Browse files
author
Kirill Nesmeyanov
committed
Improve definition exception messages
1 parent 09dd193 commit 6a9d015

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Exception/Definition/PropertyTypeNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function becauseTypeOfPropertyNotDefined(
3737
class: $class,
3838
property: $property,
3939
type: $type,
40-
template: \vsprintf('Type "{{type}}" for property %s::$%s is not registered', [
40+
template: \vsprintf('Type "{{type}}" for property %s::$%s is not defined', [
4141
$class,
4242
$property,
4343
]),

src/Exception/Definition/TypeNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static function becauseTypeNotDefined(TypeStatement $type, ?\Throwable $p
1212
{
1313
return new self(
1414
type: $type,
15-
template: 'Type "{{type}}" is not registered',
15+
template: 'Type "{{type}}" is not defined',
1616
previous: $previous,
1717
);
1818
}

0 commit comments

Comments
 (0)