Skip to content

Commit

Permalink
Close #243
Browse files Browse the repository at this point in the history
  • Loading branch information
neomerx committed Mar 2, 2020
1 parent c55e2c8 commit ee9c9f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Http/Query/BaseQueryParserTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ trait BaseQueryParserTrait
protected function getIncludes(array $parameters, string $errorTitle): iterable
{
if (\array_key_exists(P::PARAM_INCLUDE, $parameters) === true) {
$paramName = P::PARAM_INCLUDE;
$includes = $parameters[$paramName];
foreach ($this->splitCommaSeparatedStringAndCheckNoEmpties($paramName, $includes, $errorTitle) as $path) {
yield $path => $this->splitStringAndCheckNoEmpties($paramName, $path, '.', $errorTitle);
$includes = $parameters[P::PARAM_INCLUDE];
$paths = $this->splitCommaSeparatedStringAndCheckNoEmpties(P::PARAM_INCLUDE, $includes, $errorTitle);
foreach ($paths as $path) {
yield $path => $this->splitStringAndCheckNoEmpties(P::PARAM_INCLUDE, $path, '.', $errorTitle);
}
}
}
Expand Down

0 comments on commit ee9c9f6

Please sign in to comment.