File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,10 @@ public function __construct(
6868 public readonly ?array $ meta = null ,
6969 ) {
7070 if (!preg_match (self ::RESOURCE_NAME_PATTERN , $ name )) {
71- throw new InvalidArgumentException ('Invalid resource name: must contain only alphanumeric characters, underscores, and hyphens. ' );
71+ throw new InvalidArgumentException ('Invalid resource name " ' . $ name . ' " : must contain only alphanumeric characters, underscores, and hyphens. ' );
7272 }
7373 if (!preg_match (self ::URI_PATTERN , $ uri )) {
74- throw new InvalidArgumentException ('Invalid resource URI: must be a valid URI with a scheme and optional path. ' );
74+ throw new InvalidArgumentException ('Invalid resource URI: " ' . $ uri . ' " must be a valid URI with a scheme and optional path. ' );
7575 }
7676 }
7777
You can’t perform that action at this time.
0 commit comments