Skip to content

Commit 2d29cd8

Browse files
authored
Merge branch 'phpstan:2.1.x' into issue/13365
2 parents a73fec1 + b3ae3d2 commit 2d29cd8

File tree

154 files changed

+8757
-1589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+8757
-1589
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ jobs:
282282
cd e2e/ignore-error-extension
283283
composer install
284284
../../bin/phpstan
285+
- script: |
286+
cd e2e/bug-10483
287+
../../bin/phpstan
285288
286289
steps:
287290
- name: "Checkout"
@@ -392,6 +395,9 @@ jobs:
392395
cd e2e/composer-version-config
393396
composer install
394397
../../bin/phpstan analyze test.php --level=0
398+
- script: |
399+
cd e2e/bug13425
400+
timeout 15 ../bashunit -a exit_code "1" "../../bin/phpstan analyze src/ plugins/"
395401
396402
steps:
397403
- name: "Checkout"

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ lint:
105105
--exclude tests/PHPStan/Rules/Constants/data/final-private-const.php \
106106
--exclude tests/PHPStan/Rules/Properties/data/abstract-final-property-hook-parse-error.php \
107107
--exclude tests/PHPStan/Rules/Playground/data/promote-missing-override.php \
108+
--exclude tests/PHPStan/Rules/Traits/data/trait-attributes.php \
109+
--exclude tests/PHPStan/Rules/Classes/data/non-class-attribute-class.php \
110+
--exclude tests/PHPStan/Rules/Classes/data/enum-cannot-be-attribute.php \
111+
--exclude tests/PHPStan/Rules/Classes/data/class-attributes.php \
112+
--exclude tests/PHPStan/Rules/Classes/data/enum-attributes.php \
108113
src tests
109114

110115
install-paratest:

bin/phpstan

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ use Symfony\Component\Console\Helper\ProgressBar;
2929
}
3030
$devOrPharLoader->unregister();
3131

32+
// fix missing key for vendor/hoa/protocol/Wrapper.php
33+
$existingComposerAutoloadFiles = $GLOBALS['__composer_autoload_files'] ?? [];
34+
$GLOBALS['__composer_autoload_files'] = array_merge(
35+
$existingComposerAutoloadFiles,
36+
array_fill_keys(['3e76f7f02b41af8cea96018933f6b7e3'], true),
37+
);
38+
3239
$autoloaderInWorkingDirectory = $vendorDirectory . '/autoload.php';
3340
$composerAutoloaderProjectPaths = [];
3441

build/ignore-by-php-version.neon.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
} else {
3939
$includes[] = __DIR__ . '/new-phpunit.neon';
4040
}
41+
42+
if (PHP_VERSION_ID < 80300) {
43+
$includes[] = __DIR__ . '/str-increment.neon';
44+
}
45+
4146
$config = [];
4247
$config['includes'] = $includes;
4348

build/str-increment.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Used function str_increment not found\.#'

compiler/composer.lock

Lines changed: 56 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"hoa/compiler": "3.17.08.08",
1616
"hoa/exception": "^1.0",
1717
"hoa/file": "1.17.07.11",
18-
"jetbrains/phpstorm-stubs": "dev-master#6c034ae018ed7ac2cacf2474f824aede73658afa",
18+
"jetbrains/phpstorm-stubs": "dev-master#6a5790124fa07452a48d1f34711fb397d7e42b9d",
1919
"nette/bootstrap": "^3.0",
2020
"nette/di": "^3.1.4",
2121
"nette/neon": "3.3.4",
@@ -27,8 +27,8 @@
2727
"ondrejmirtes/better-reflection": "6.57.0.0",
2828
"ondrejmirtes/composer-attribute-collector": "^1.1.1",
2929
"ondrejmirtes/php-merge": "^4.1",
30-
"phpstan/php-8-stubs": "0.4.15",
31-
"phpstan/phpdoc-parser": "2.2.0",
30+
"phpstan/php-8-stubs": "0.4.24",
31+
"phpstan/phpdoc-parser": "2.3.0",
3232
"psr/http-message": "^1.1",
3333
"react/async": "^3",
3434
"react/child-process": "^0.7",
@@ -125,7 +125,8 @@
125125
"patches/dom_c.patch"
126126
],
127127
"nette/di": [
128-
"patches/DependencyChecker.patch"
128+
"patches/DependencyChecker.patch",
129+
"patches/Resolver.patch"
129130
],
130131
"react/http": [
131132
"patches/Sender.patch"

0 commit comments

Comments
 (0)