Skip to content

Commit 68561b7

Browse files
committed
AC-3038: Fixes for Static Tests
1 parent b7aa83d commit 68561b7

File tree

2 files changed

+4
-0
lines changed
  • app/code/Magento/SalesGraphQl/Model/Resolver/CustomerOrders/Query
  • lib/internal/Magento/Framework/Backup/Filesystem/Rollback

2 files changed

+4
-0
lines changed

app/code/Magento/SalesGraphQl/Model/Resolver/CustomerOrders/Query/OrderFilter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class OrderFilter
4242
* @param FilterBuilder $filterBuilder
4343
* @param FilterGroupBuilder $filterGroupBuilder
4444
* @param string[] $fieldTranslatorArray
45+
*
46+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4547
*/
4648
public function __construct(
4749
ScopeConfigInterface $scopeConfig,

lib/internal/Magento/Framework/Backup/Filesystem/Rollback/Ftp.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ protected function _cleanupFtp()
165165
);
166166

167167
foreach ($iterator as $item) {
168+
// @phpstan-ignore-next-line
168169
$ftpPath = $this->_snapshot->getFtpPath() . '/' . str_replace($rootDir ?? '', '', $item->__toString());
169170
$ftpPath = str_replace('\\', '/', $ftpPath);
170171

@@ -193,6 +194,7 @@ protected function _uploadBackupToFtp($tmpDir)
193194
);
194195

195196
foreach ($filesystemIterator as $item) {
197+
// @phpstan-ignore-next-line
196198
$ftpPath = $this->_snapshot->getFtpPath() . '/' . str_replace($tmpDir ?? '', '', $item->__toString());
197199
$ftpPath = str_replace('\\', '/', $ftpPath);
198200

0 commit comments

Comments
 (0)