Skip to content

Commit 5f37280

Browse files
committed
Step 1 of merge from upstream
2 parents 4f2e333 + 4964f8d commit 5f37280

File tree

479 files changed

+14167
-9967
lines changed

Some content is hidden

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

479 files changed

+14167
-9967
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
/.github export-ignore
22
/doc export-ignore
3+
/grammar export-ignore
34
/test export-ignore
45
/test_old export-ignore
6+
/tools export-ignore
57
.editorconfig export-ignore
68
.gitattributes export-ignore
79
.gitignore export-ignore
10+
.php-cs-fixer.dist.php export-ignore
11+
Makefile export-ignore
812
CHANGELOG.md export-ignore
913
CONTRIBUTING.md export-ignore
14+
phpstan-baseline.neon export-ignore
15+
phpstan.neon.dist export-ignore
1016
phpunit.xml.dist export-ignore
1117
UPGRADE-*.md export-ignore

.github/workflows/main.yml

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ on:
77
jobs:
88
tests_coverage:
99
runs-on: "ubuntu-latest"
10-
name: "PHP 7.1 Unit Tests (with coverage)"
10+
name: "PHP 7.4 Unit Tests (with coverage)"
1111
steps:
1212
- name: "Checkout"
13-
uses: "actions/checkout@v2"
13+
uses: "actions/checkout@v4"
1414
- name: "Install PHP"
1515
uses: "shivammathur/setup-php@v2"
1616
with:
1717
coverage: "xdebug"
18-
php-version: "7.1"
18+
php-version: "7.4"
1919
tools: composer:v2
2020
- name: "Install dependencies"
2121
run: |
2222
composer require php-coveralls/php-coveralls:^2.2 --dev --no-update
23-
composer update --no-progress --prefer-dist
23+
COMPOSER_ROOT_VERSION=dev-master composer update --no-progress --prefer-dist
2424
- name: "Tests"
2525
run: "php vendor/bin/phpunit --coverage-clover build/logs/clover.xml"
2626
- name: Coveralls
@@ -34,75 +34,91 @@ jobs:
3434
strategy:
3535
matrix:
3636
php-version:
37-
- "7.2"
38-
- "7.3"
39-
- "7.4"
4037
- "8.0"
4138
- "8.1"
4239
- "8.2"
40+
- "8.3"
41+
- "8.4"
42+
fail-fast: false
4343
steps:
4444
- name: "Checkout"
45-
uses: "actions/checkout@v2"
45+
uses: "actions/checkout@v4"
4646
- name: "Install PHP"
4747
uses: "shivammathur/setup-php@v2"
4848
with:
4949
coverage: "none"
5050
php-version: "${{ matrix.php-version }}"
51+
ini-file: "development"
5152
tools: composer:v2
5253
- name: "Install dependencies"
53-
run: "composer update --no-progress --prefer-dist ${{ matrix.flags }}"
54+
run: "COMPOSER_ROOT_VERSION=dev-master composer update --no-progress --prefer-dist ${{ matrix.flags }}"
5455
- name: "PHPUnit"
5556
run: "php vendor/bin/phpunit"
5657
test_old_73_80:
5758
runs-on: "ubuntu-latest"
58-
name: "PHP 7.3 Code on PHP 8.0 Integration Tests"
59+
name: "PHP 7.4 Code on PHP 8.4 Integration Tests"
5960
steps:
6061
- name: "Checkout"
61-
uses: "actions/checkout@v2"
62+
uses: "actions/checkout@v4"
6263
- name: "Install PHP"
6364
uses: "shivammathur/setup-php@v2"
6465
with:
6566
coverage: "none"
66-
php-version: "8.0"
67+
php-version: "8.4"
68+
ini-file: "development"
6769
tools: composer:v2
6870
- name: "Install PHP 8 dependencies"
69-
run: "composer update --no-progress --prefer-dist"
71+
run: "COMPOSER_ROOT_VERSION=dev-master composer update --no-progress --prefer-dist"
7072
- name: "Tests"
71-
run: "test_old/run-php-src.sh 7.3.21"
73+
run: "test_old/run-php-src.sh 7.4.33"
7274
test_old_80_70:
7375
runs-on: "ubuntu-latest"
74-
name: "PHP 8.1 Code on PHP 7.1 Integration Tests"
76+
name: "PHP 8.4 Code on PHP 7.4 Integration Tests"
7577
steps:
7678
- name: "Checkout"
77-
uses: "actions/checkout@v2"
79+
uses: "actions/checkout@v4"
7880
- name: "Install PHP"
7981
uses: "shivammathur/setup-php@v2"
8082
with:
8183
coverage: "none"
82-
php-version: "7.1"
84+
php-version: "7.4"
85+
ini-file: "development"
8386
tools: composer:v2
8487
- name: "Install PHP 8 dependencies"
85-
run: "composer update --no-progress --prefer-dist"
88+
run: "COMPOSER_ROOT_VERSION=dev-master composer update --no-progress --prefer-dist"
8689
- name: "Tests"
87-
run: "test_old/run-php-src.sh 8.1.6"
90+
run: "test_old/run-php-src.sh 8.4.0beta5"
8891
phpstan:
8992
runs-on: "ubuntu-latest"
90-
name: "PHP ${{ matrix.php-version }} PHPStan"
91-
strategy:
92-
matrix:
93-
php-version:
94-
- "8.2"
93+
name: "PHPStan"
9594
steps:
9695
- name: "Checkout"
97-
uses: "actions/checkout@v2"
96+
uses: "actions/checkout@v4"
9897
- name: "Install PHP"
9998
uses: "shivammathur/setup-php@v2"
10099
with:
101100
coverage: "none"
102-
php-version: "${{ matrix.php-version }}"
101+
php-version: "8.3"
103102
tools: composer:v2
104103
- name: "Install dependencies"
105-
run: |
104+
run: |
106105
cd tools && composer install
107106
- name: "PHPStan"
108107
run: "php tools/vendor/bin/phpstan"
108+
php-cs-fixer:
109+
runs-on: "ubuntu-latest"
110+
name: "PHP-CS-Fixer"
111+
steps:
112+
- name: "Checkout"
113+
uses: "actions/checkout@v4"
114+
- name: "Install PHP"
115+
uses: "shivammathur/setup-php@v2"
116+
with:
117+
coverage: "none"
118+
php-version: "8.3"
119+
tools: composer:v2
120+
- name: "Install dependencies"
121+
run: |
122+
cd tools && composer install
123+
- name: "php-cs-fixer"
124+
run: "php tools/vendor/bin/php-cs-fixer fix --dry-run"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.project
22
.idea
33
sandbox
4+
tmp
45
vendor/
56
composer.lock
67
grammar/kmyacc.exe
78
grammar/y.output
89
.phpunit.result.cache
10+
.php-cs-fixer.cache

.php-cs-fixer.dist.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
'declare_strict_types' => true,
2222
// Keep argument formatting for now.
2323
'method_argument_space' => ['on_multiline' => 'ignore'],
24+
'phpdoc_align' => ['align' => 'left'],
25+
'phpdoc_trim' => true,
26+
'no_empty_phpdoc' => true,
27+
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
28+
'no_extra_blank_lines' => true,
2429
])
2530
->setFinder($finder)
2631
;

0 commit comments

Comments
 (0)