Skip to content

Commit

Permalink
fix error message for missing array parameter adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Wills authored and sburba committed Sep 30, 2019
1 parent 1dca4e8 commit 7ae396e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/ConstructorParameterFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private function findParameters(string $classname, JsonPath $path): array
// information for a more helpful error message
throw new InvalidConfigurationException(
"$classname::__construct has parameter name $param_name of type array with no parameter adapter\n"
. "(Use StrictJson::builder()->addArrayParameterAdapter(...) to register an array adapter for this class)",
. "(Use StrictJson::builder()->addParameterArrayAdapter(...) to register an array adapter for this class)",
$path
);
}
Expand Down

0 comments on commit 7ae396e

Please sign in to comment.