Skip to content

Commit 9f0519b

Browse files
committed
Close neomerx#200
1 parent b8e0b6d commit 9f0519b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Encoder/Parameters/ParametersAnalyzer.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
* limitations under the License.
1717
*/
1818

19-
use \Psr\Log\LoggerAwareTrait;
20-
use \Psr\Log\LoggerAwareInterface;
21-
use \Neomerx\JsonApi\Contracts\Schema\ContainerInterface;
22-
use \Neomerx\JsonApi\Contracts\Document\DocumentInterface;
23-
use \Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface;
24-
use \Neomerx\JsonApi\Contracts\Encoder\Parameters\ParametersAnalyzerInterface;
19+
use Neomerx\JsonApi\Contracts\Document\DocumentInterface;
20+
use Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface;
21+
use Neomerx\JsonApi\Contracts\Encoder\Parameters\ParametersAnalyzerInterface;
22+
use Neomerx\JsonApi\Contracts\Schema\ContainerInterface;
23+
use Psr\Log\LoggerAwareInterface;
24+
use Psr\Log\LoggerAwareTrait;
2525

2626
/**
2727
* @package Neomerx\JsonApi
@@ -168,7 +168,7 @@ protected function hasMatchWithIncludedPaths(array $paths, $path)
168168

169169
if ($path !== null) {
170170
foreach ($paths as $targetPath) {
171-
if (strpos($targetPath, $path) === 0) {
171+
if (strpos($targetPath, $path . DocumentInterface::PATH_SEPARATOR) === 0) {
172172
$hasMatch = true;
173173
break;
174174
}

0 commit comments

Comments
 (0)