Skip to content

Commit 3e8c91f

Browse files
authored
Bump to PHPStan ^2.1.36 (#7850)
* Bump to PHPStan ^2.1.36 * fix compatible version * fix class case sensitive fixture fix
1 parent 581b0cb commit 3e8c91f

6 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/packages_tests.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ jobs:
5555
run: composer require rector/rector-src dev-main#${{github.event.pull_request.head.sha}} --no-update
5656
if: ${{ github.event_name == 'pull_request' }}
5757

58-
- run: |
59-
composer install --ansi
60-
composer require --dev phpstan/phpstan:2.1.34
58+
- run: composer install --ansi
6159

6260
- run: ${{ matrix.actions.run }}

.github/workflows/rector_laravel_rector_dev.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,4 @@ jobs:
2727

2828
- run: git clone https://github.com/driftingly/rector-laravel.git
2929
- run: composer require rector/rector:dev-main --working-dir rector-laravel
30-
- run: |
31-
cd rector-laravel && composer require --dev phpstan/phpstan:2.1.34
32-
vendor/bin/phpunit
30+
- run: cd rector-laravel && vendor/bin/phpunit

build/target-repository/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"require": {
1111
"php": "^7.4|^8.0",
12-
"phpstan/phpstan": "2.1.34"
12+
"phpstan/phpstan": "^2.1.36"
1313
},
1414
"autoload": {
1515
"files": [

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"nikic/php-parser": "^5.7",
2424
"ondram/ci-detector": "^4.2",
2525
"phpstan/phpdoc-parser": "^2.3",
26-
"phpstan/phpstan": "2.1.34",
26+
"phpstan/phpstan": "^2.1.36",
2727
"react/event-loop": "^1.6",
2828
"react/promise": "^3.3",
2929
"react/socket": "^1.17",

rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/Fixture/constructor_private.php.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class ConstructorPrivate
66
{
77
public function __construct()
88
{
9-
$this->value = 'classStringCaseInSensitive';
9+
$this->value = 'constructorPrivate';
1010
}
1111
}
1212

@@ -21,7 +21,7 @@ class ConstructorPrivate
2121
private string $value;
2222
public function __construct()
2323
{
24-
$this->value = 'classStringCaseInSensitive';
24+
$this->value = 'constructorPrivate';
2525
}
2626
}
2727

tests/Config/RectorConfigTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@
44

55
namespace Rector\Tests\Config;
66

7+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
78
use Rector\Configuration\Option;
89
use Rector\Configuration\Parameter\SimpleParameterProvider;
910
use Rector\Symfony\Set\TwigSetList;
1011
use Rector\Testing\PHPUnit\AbstractLazyTestCase;
1112
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnNewRector;
1213

14+
/**
15+
* On macOS, this file order config cause this container read other tests' config.
16+
* so, this #[RunTestsInSeparateProcesses] is needed.
17+
*/
18+
#[RunTestsInSeparateProcesses]
1319
final class RectorConfigTest extends AbstractLazyTestCase
1420
{
1521
public function test(): void

0 commit comments

Comments
 (0)