Skip to content

Commit 10f7989

Browse files
committed
AC-2855: Fixed failing PHPMD and PHPSTAN test failures
1 parent 4638f97 commit 10f7989

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/code/Magento/Backend/Model/Menu.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@ public function setFlags($flags)
401401

402402
/**
403403
* @inheritDoc
404+
*
405+
* @phpstan-return void
404406
*/
405407
#[\ReturnTypeWillChange]
406408
public function asort($flags = SORT_REGULAR)
@@ -410,6 +412,8 @@ public function asort($flags = SORT_REGULAR)
410412

411413
/**
412414
* @inheritDoc
415+
*
416+
* @phpstan-return void
413417
*/
414418
#[\ReturnTypeWillChange]
415419
public function ksort($flags = SORT_REGULAR)
@@ -454,6 +458,8 @@ public function setIteratorClass($iteratorClass)
454458

455459
/**
456460
* @inheritDoc
461+
*
462+
* @phpstan-return void
457463
*/
458464
#[\ReturnTypeWillChange]
459465
public function natsort()
@@ -463,6 +469,8 @@ public function natsort()
463469

464470
/**
465471
* @inheritDoc
472+
*
473+
* @phpstan-return void
466474
*/
467475
#[\ReturnTypeWillChange]
468476
public function natcasesort()

lib/internal/Magento/Framework/Code/Generator/EntityAbstract.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
/**
1212
* Abstract entity
13+
*
14+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1315
*/
1416
abstract class EntityAbstract
1517
{

0 commit comments

Comments
 (0)