We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85cb9bc commit 6caced5Copy full SHA for 6caced5
src/Response/Base.php
@@ -6,13 +6,13 @@
6
7
abstract class Base
8
{
9
+ /**
10
+ * @throws Valinor\Mapper\MappingError
11
+ */
12
public static function fromArray(mixed $data): static
13
14
try {
15
return (new Valinor\MapperBuilder())
- ->enableFlexibleCasting()
- ->allowSuperfluousKeys()
- ->allowPermissiveTypes()
16
->mapper()
17
->map(
18
static::class,
@@ -28,6 +28,8 @@ public static function fromArray(mixed $data): static
28
foreach ($errorMessages as $message) {
29
echo $message . PHP_EOL;
30
}
31
+
32
+ throw $error;
33
34
35
0 commit comments