File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
lib/internal/Magento/Framework/Reflection Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,7 @@ public function getExceptions($methodReflection)
327
327
if (is_array ($ throwsTypes )) {
328
328
/** @var $throwsType \Zend\Code\Reflection\DocBlock\Tag\ThrowsTag */
329
329
foreach ($ throwsTypes as $ throwsType ) {
330
+ // phpcs:ignore
330
331
$ exceptions = array_merge ($ exceptions , $ throwsType ->getTypes ());
331
332
}
332
333
}
@@ -528,13 +529,15 @@ public function getParamType(ParameterReflection $param)
528
529
{
529
530
$ type = $ param ->detectType ();
530
531
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
+ );
538
541
}
539
542
if ($ type === 'array ' ) {
540
543
// try to determine class, if it's array of objects
You can’t perform that action at this time.
0 commit comments