Skip to content

Commit 881f91a

Browse files
committed
Use PHPStan 2.x for the integration testing
1 parent 7b5ca5b commit 881f91a

File tree

4 files changed

+56
-4
lines changed

4 files changed

+56
-4
lines changed

magento/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"magento/magento2-functional-testing-framework": "^3.7",
5858
"pdepend/pdepend": "~2.10.0",
5959
"phpmd/phpmd": "^2.12.0",
60-
"phpstan/extension-installer": "^1.1",
61-
"phpstan/phpstan": "^1.8",
60+
"phpstan/extension-installer": "^1.4",
61+
"phpstan/phpstan": "^2.0",
6262
"phpunit/phpunit": "~9.5.20",
6363
"sebastian/phpcpd": "^6.0.3",
6464
"squizlabs/php_codesniffer": "~3.6.0",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace BitExpert\PHPStanTests\Setup\Patch\Data;
6+
7+
use Magento\Framework\Setup\Patch\DataPatchInterface;
8+
9+
class Patch1 implements DataPatchInterface
10+
{
11+
public function apply(): self
12+
{
13+
return $this;
14+
}
15+
16+
public static function getDependencies()
17+
{
18+
return [];
19+
}
20+
21+
public function getAliases()
22+
{
23+
return [];
24+
}
25+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace BitExpert\PHPStanTests\Setup\Patch\Data;
6+
7+
use Magento\Framework\Setup\Patch\DataPatchInterface;
8+
9+
class Patch2 implements DataPatchInterface
10+
{
11+
public function apply(): self
12+
{
13+
return $this;
14+
}
15+
16+
public static function getDependencies()
17+
{
18+
return [
19+
Patch1::class,
20+
];
21+
}
22+
23+
public function getAliases()
24+
{
25+
return [];
26+
}
27+
}

src/BitExpert_PHPStanTests/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
}
2828
},
2929
"require-dev": {
30-
"phpstan/phpstan": "^1.8",
31-
"phpstan/extension-installer": "^1.1",
30+
"phpstan/phpstan": "^2.0",
31+
"phpstan/extension-installer": "^1.4",
3232
"bitexpert/phpstan-magento": "dev-master"
3333
}
3434
}

0 commit comments

Comments
 (0)