Skip to content

Commit ec9fc5c

Browse files
committed
update downgrade
1 parent 1a1e51a commit ec9fc5c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

build/composer-php-74.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "symplify/phpstan-extensions",
3+
"type": "phpstan-extension",
4+
"description": "Pre-escaped error messages in 'symplify' error format, container aware test case and other useful extensions for PHPStan",
5+
"license": "MIT",
6+
"keywords": ["static analysis", "phpstan-extension"],
7+
"require": {
8+
"php": "^7.4 || ^8.0",
9+
"phpstan/phpstan": "^2.0"
10+
},
11+
"autoload": {
12+
"psr-4": {
13+
"Symplify\\PHPStanExtensions\\": "src"
14+
}
15+
},
16+
"extra": {
17+
"phpstan": {
18+
"includes": [
19+
"config/config.neon"
20+
]
21+
}
22+
}
23+
}

build/rector-downgrade-php-74.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Set\ValueObject\DowngradeLevelSetList;
7+
8+
return static function (RectorConfig $rectorConfig): void {
9+
$rectorConfig->sets([DowngradeLevelSetList::DOWN_TO_PHP_74]);
10+
};

0 commit comments

Comments
 (0)