Skip to content

Commit 03b9ce6

Browse files
authored
Merge branch 'phpstan:2.1.x' into Assert-and-throws-are-side-effects
2 parents d71b228 + da7141a commit 03b9ce6

File tree

211 files changed

+4768
-390
lines changed

Some content is hidden

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

211 files changed

+4768
-390
lines changed

.github/workflows/static-analysis.yml

-7
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ jobs:
5656
shell: bash
5757
run: "vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}"
5858

59-
- name: "Upload transformed sources"
60-
if: matrix.php-version == '7.4'
61-
uses: actions/upload-artifact@v3
62-
with:
63-
name: transformed-src
64-
path: src
65-
6659
- name: "PHPStan"
6760
run: "make phpstan"
6861

LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MIT License
22

33
Copyright (c) 2016 Ondřej Mirtes
4+
Copyright (c) 2025 PHPStan s.r.o.
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
build: cs tests phpstan
44

55
tests:
6-
php vendor/bin/paratest --runner WrapperRunner --no-coverage
6+
XDEBUG_MODE=off php vendor/bin/paratest --runner WrapperRunner --no-coverage
77

88
tests-integration:
99
php vendor/bin/paratest --runner WrapperRunner --no-coverage --group exec
@@ -18,7 +18,7 @@ tests-golden-reflection:
1818
php vendor/bin/paratest --runner WrapperRunner --no-coverage tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php
1919

2020
lint:
21-
php vendor/bin/parallel-lint --colors \
21+
XDEBUG_MODE=off php vendor/bin/parallel-lint --colors \
2222
--exclude tests/PHPStan/Analyser/data \
2323
--exclude tests/PHPStan/Analyser/nsrt \
2424
--exclude tests/PHPStan/Rules/Methods/data \
@@ -88,6 +88,8 @@ lint:
8888
--exclude tests/PHPStan/Rules/Properties/data/non-abstract-hooked-properties-in-class.php \
8989
--exclude tests/PHPStan/Rules/Properties/data/hooked-properties-in-class.php \
9090
--exclude tests/PHPStan/Rules/Properties/data/hooked-properties-without-bodies-in-class.php \
91+
--exclude tests/PHPStan/Rules/Properties/data/readonly-property-hooks.php \
92+
--exclude tests/PHPStan/Rules/Properties/data/readonly-property-hooks-in-interface.php \
9193
--exclude tests/PHPStan/Rules/Classes/data/bug-12281.php \
9294
--exclude tests/PHPStan/Rules/Traits/data/bug-12281.php \
9395
--exclude tests/PHPStan/Rules/Classes/data/invalid-hooked-properties.php \
@@ -99,10 +101,10 @@ lint:
99101
src tests
100102

101103
cs:
102-
composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
104+
composer install --working-dir build-cs && XDEBUG_MODE=off php build-cs/vendor/bin/phpcs
103105

104106
cs-fix:
105-
php build-cs/vendor/bin/phpcbf
107+
XDEBUG_MODE=off php build-cs/vendor/bin/phpcbf
106108

107109
phpstan:
108110
php bin/phpstan clear-result-cache -q && php -d memory_limit=448M bin/phpstan

composer.json

+2-2
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#62a683f61d9ea11ef8caf8b2ad54e59e92b2c670",
18+
"jetbrains/phpstorm-stubs": "dev-master#6c6bf204cbdf39006f12a6c923b8217444acd67f",
1919
"nette/bootstrap": "^3.0",
2020
"nette/di": "^3.1.4",
2121
"nette/neon": "3.3.4",
@@ -24,7 +24,7 @@
2424
"nette/utils": "^3.2.5",
2525
"nikic/php-parser": "^5.4.0",
2626
"ondram/ci-detector": "^3.4.0",
27-
"ondrejmirtes/better-reflection": "6.51.0.1",
27+
"ondrejmirtes/better-reflection": "6.53.0.0",
2828
"phpstan/php-8-stubs": "0.4.9",
2929
"phpstan/phpdoc-parser": "2.0.0",
3030
"psr/http-message": "^1.1",

0 commit comments

Comments
 (0)