Skip to content

Commit 99a1a98

Browse files
committed
#25656: Code Style fixes
- phpcs:ignore added because this line was not actually touched
1 parent 0cea191 commit 99a1a98

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

lib/internal/Magento/Framework/Reflection/TypeProcessor.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ public function getExceptions($methodReflection)
327327
if (is_array($throwsTypes)) {
328328
/** @var $throwsType \Zend\Code\Reflection\DocBlock\Tag\ThrowsTag */
329329
foreach ($throwsTypes as $throwsType) {
330+
// phpcs:ignore
330331
$exceptions = array_merge($exceptions, $throwsType->getTypes());
331332
}
332333
}
@@ -528,13 +529,15 @@ public function getParamType(ParameterReflection $param)
528529
{
529530
$type = $param->detectType();
530531
if ($type === 'null') {
531-
throw new \LogicException(sprintf(
532-
'@param annotation is incorrect for the parameter "%s" in the method "%s:%s".'
533-
. ' First declared type should not be null. E.g. string|null',
534-
$param->getName(),
535-
$param->getDeclaringClass()->getName(),
536-
$param->getDeclaringFunction()->name
537-
));
532+
throw new \LogicException(
533+
sprintf(
534+
'@param annotation is incorrect for the parameter "%s" in the method "%s:%s".'
535+
. ' First declared type should not be null. E.g. string|null',
536+
$param->getName(),
537+
$param->getDeclaringClass()->getName(),
538+
$param->getDeclaringFunction()->name
539+
)
540+
);
538541
}
539542
if ($type === 'array') {
540543
// try to determine class, if it's array of objects

0 commit comments

Comments
 (0)