@@ -80,7 +80,9 @@ public function register(
80
80
!interface_exists ($ interface ) &&
81
81
!class_exists ($ interface )
82
82
) {
83
- throw Exceptional::NotFound ('Interface ' . $ interface . ' does not exist ' );
83
+ throw Exceptional::NotFound (
84
+ message: 'Interface ' . $ interface . ' does not exist '
85
+ );
84
86
}
85
87
86
88
if (
@@ -200,7 +202,9 @@ public function resolve(
200
202
$ names = implode (', ' , $ names );
201
203
}
202
204
203
- throw Exceptional::NotFound ('Could not resolve ' . ($ names ? '" ' . $ names . '" ' : 'default ' ) . ' for interface ' . $ interface );
205
+ throw Exceptional::NotFound (
206
+ message: 'Could not resolve ' . ($ names ? '" ' . $ names . '" ' : 'default ' ) . ' for interface ' . $ interface
207
+ );
204
208
}
205
209
206
210
return $ class ;
@@ -385,7 +389,9 @@ public function findFile(
385
389
}
386
390
}
387
391
388
- throw Exceptional::NotFound ('Could not find file " ' . $ name . '" in namespace ' . $ interface );
392
+ throw Exceptional::NotFound (
393
+ message: 'Could not find file " ' . $ name . '" in namespace ' . $ interface
394
+ );
389
395
}
390
396
391
397
@@ -431,7 +437,9 @@ protected function ensureResolver(
431
437
if ($ interface === Resolver::class) {
432
438
$ class = ArchetypeResolver::class;
433
439
} elseif (!$ class = $ this ->resolve (Resolver::class, $ interface )) {
434
- throw Exceptional::NotFound ('Interface ' . $ interface . ' has no Archetype resolver ' );
440
+ throw Exceptional::NotFound (
441
+ message: 'Interface ' . $ interface . ' has no Archetype resolver '
442
+ );
435
443
}
436
444
437
445
/** @var class-string<Resolver> $class */
0 commit comments