@@ -274,7 +274,7 @@ |
||
274 | 274 | /** |
275 | 275 | * Test that number is valid for this context. |
276 | 276 | * |
277 | - * @param mixed $num |
|
277 | + * @param string $num |
|
278 | 278 | * @return bool |
279 | 279 | */ |
280 | 280 | private static function _validateNumber($num): bool |
@@ -332,10 +332,10 @@ discard block |
||
332 | 332 | private function _isPseudoType(int $tag): bool |
333 | 333 | { |
334 | 334 | switch ($tag) { |
335 | - case self::TYPE_STRING: |
|
336 | - return $this instanceof StringType; |
|
337 | - case self::TYPE_TIME: |
|
338 | - return $this instanceof TimeType; |
|
335 | + case self::TYPE_STRING: |
|
336 | + return $this instanceof StringType; |
|
337 | + case self::TYPE_TIME: |
|
338 | + return $this instanceof TimeType; |
|
339 | 339 | } |
340 | 340 | return false; |
341 | 341 | } |
@@ -398,14 +398,14 @@ discard block |
||
398 | 398 | protected static function _determineImplClass(Identifier $identifier): string |
399 | 399 | { |
400 | 400 | switch ($identifier->typeClass()) { |
401 | - case Identifier::CLASS_UNIVERSAL: |
|
402 | - return self::_determineUniversalImplClass($identifier->intTag()); |
|
403 | - case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
404 | - return TaggedType::class; |
|
405 | - case Identifier::CLASS_APPLICATION: |
|
406 | - return ApplicationType::class; |
|
407 | - case Identifier::CLASS_PRIVATE: |
|
408 | - return PrivateType::class; |
|
401 | + case Identifier::CLASS_UNIVERSAL: |
|
402 | + return self::_determineUniversalImplClass($identifier->intTag()); |
|
403 | + case Identifier::CLASS_CONTEXT_SPECIFIC: |
|
404 | + return TaggedType::class; |
|
405 | + case Identifier::CLASS_APPLICATION: |
|
406 | + return ApplicationType::class; |
|
407 | + case Identifier::CLASS_PRIVATE: |
|
408 | + return PrivateType::class; |
|
409 | 409 | } |
410 | 410 | throw new \UnexpectedValueException( |
411 | 411 | sprintf("%s %d not implemented.", |