| @@ 82-89 (lines=8) @@ | ||
| 79 | $orderBySubPathSegments = $orderByPathSegment->getSubPathSegments(); |
|
| 80 | $j = count($orderBySubPathSegments) - 1; |
|
| 81 | $expectedType = $orderBySubPathSegments[$j]->getInstanceType(); |
|
| 82 | if (!$expectedType->isCompatibleWith($typeProvidedInSkipToken)) { |
|
| 83 | throw ODataException::createSyntaxError( |
|
| 84 | Messages::skipTokenParserInCompatibleTypeAtPosition( |
|
| 85 | $skipToken, |
|
| 86 | $expectedType->getFullTypeName(), |
|
| 87 | $i, |
|
| 88 | $typeProvidedInSkipToken->getFullTypeName() |
|
| 89 | ) |
|
| 90 | ); |
|
| 91 | } |
|
| 92 | } |
|
| @@ 287-295 (lines=9) @@ | ||
| 284 | ||
| 285 | $typeProvided = $this->namedValues[$keyName][1]; |
|
| 286 | $expectedType = $keyResourceProperty->getInstanceType(); |
|
| 287 | if (!$expectedType->isCompatibleWith($typeProvided)) { |
|
| 288 | throw ODataException::createSyntaxError( |
|
| 289 | Messages::keyDescriptorInCompatibleKeyType( |
|
| 290 | $segmentAsString, |
|
| 291 | $keyName, |
|
| 292 | $expectedType->getFullTypeName(), |
|
| 293 | $typeProvided->getFullTypeName() |
|
| 294 | ) |
|
| 295 | ); |
|
| 296 | } |
|
| 297 | ||
| 298 | $this->validatedNamedValues[$keyName] = $this->namedValues[$keyName]; |
|
| @@ 316-324 (lines=9) @@ | ||
| 313 | $typeProvided = $this->positionalValues[$i][1]; |
|
| 314 | $expectedType = $keyResourceProperty->getInstanceType(); |
|
| 315 | ||
| 316 | if (!$expectedType->isCompatibleWith($typeProvided)) { |
|
| 317 | throw ODataException::createSyntaxError( |
|
| 318 | Messages::keyDescriptorInCompatibleKeyTypeAtPosition( |
|
| 319 | $segmentAsString, |
|
| 320 | $keyResourceProperty->getName(), |
|
| 321 | $i, |
|
| 322 | $expectedType->getFullTypeName(), |
|
| 323 | $typeProvided->getFullTypeName() |
|
| 324 | ) |
|
| 325 | ); |
|
| 326 | } |
|
| 327 | ||