Skip to content

Commit f370069

Browse files
committed
Adjustments for phpstan v1
1 parent 73a9a89 commit f370069

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Checker/Catalog/Category/UrlKey/DuplicateUrlKey.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Baldwin\UrlDataIntegrityChecker\Checker\Catalog\Category\UrlPath as UrlPathChecker;
88
use Baldwin\UrlDataIntegrityChecker\Util\Stores as StoresUtil;
9+
use Magento\Catalog\Model\Category;
910

1011
class DuplicateUrlKey
1112
{
@@ -15,6 +16,8 @@ class DuplicateUrlKey
1516

1617
private $storesUtil;
1718
private $urlPathChecker;
19+
20+
/** @var array<string, array<Category>> */
1821
private $urlPathsInfo;
1922

2023
public function __construct(

phpstan.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ parameters:
88
excludePaths:
99
- vendor/*
1010
ignoreErrors:
11-
- '/ has no return typehint specified./'
11+
- '/ has no return type specified./'
1212

1313
- message: '/Use service contracts to persist entities in favour of Magento\\Cron\\Model\\Schedule\:\:save\(\) method/'
1414
path: Cron/ScheduleJob.php
1515

1616
- message: '/Call to deprecated method save\(\) of class Magento\\Framework\\Model\\AbstractModel/'
1717
path: Cron/ScheduleJob.php
1818

19-
- message: '/Parameter \#1 \$autoload_function of function spl_autoload_register expects callable\(string\)\: void, array\(Magento\\Framework\\TestFramework\\Unit\\Autoloader\\GeneratedClassesAutoloader/'
19+
- message: '/Parameter \#1 \$autoload_function of function spl_autoload_register expects callable\(string\)\: void, array\{Magento\\Framework\\TestFramework\\Unit\\Autoloader\\GeneratedClassesAutoloader/'
2020
path: Test/bootstrap.php

0 commit comments

Comments
 (0)