Skip to content

Commit 69f6334

Browse files
committed
Merge branch 'master' into PHP8-Sane-Property-Names
2 parents 11522af + 7635b3f commit 69f6334

File tree

1,418 files changed

+81833
-34871
lines changed

Some content is hidden

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

1,418 files changed

+81833
-34871
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
/.github export-ignore
44
/.gitignore export-ignore
55
/.php_cs.dist export-ignore
6-
/.sami.php export-ignore
76
/.scrutinizer.yml export-ignore
87
/CHANGELOG.PHPExcel.md export-ignore
98
/bin export-ignore
109
/composer.lock export-ignore
1110
/docs export-ignore
11+
/infra export-ignore
1212
/mkdocs.yml export-ignore
1313
/phpunit.xml.dist export-ignore
1414
/samples export-ignore

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
time: "11:00"
8+
open-pull-requests-limit: 10

.github/workflows/github-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Build API documentation
2121
run: |
22-
curl -LO https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0-rc/phpDocumentor.phar
22+
curl -LO https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0/phpDocumentor.phar
2323
php phpDocumentor.phar --directory src/ --target docs/api
2424
2525
- name: Deploy to GithHub Pages

.github/workflows/main.yml

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8+
experimental:
9+
- false
810
php-version:
911
- '7.2'
1012
- '7.3'
@@ -38,22 +40,24 @@ jobs:
3840

3941
- name: Delete composer lock file
4042
id: composer-lock
41-
if: ${{ matrix.php-version == '8.0' || matrix.php-version == '8.1' }}
43+
if: ${{ matrix.php-version == '8.1' }}
4244
run: |
4345
rm composer.lock
4446
echo "::set-output name=flags::--ignore-platform-reqs"
4547
4648
- name: Install dependencies
47-
run: composer install --no-progress --prefer-dist --optimize-autoloader ${{ steps.composer-lock.outputs.flags }}
49+
run: composer update --no-progress --prefer-dist --optimize-autoloader ${{ steps.composer-lock.outputs.flags }}
4850

4951
- name: Setup problem matchers for PHP
5052
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
5153

5254
- name: Setup problem matchers for PHPUnit
5355
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
5456

55-
- name: Test with PHPUnit
56-
run: ./vendor/bin/phpunit
57+
- name: "Run PHPUnit tests (Experimental: ${{ matrix.experimental }})"
58+
env:
59+
FAILURE_ACTION: "${{ matrix.experimental == true }}"
60+
run: vendor/bin/phpunit --verbose || $FAILURE_ACTION
5761

5862
php-cs-fixer:
5963
runs-on: ubuntu-latest
@@ -117,6 +121,68 @@ jobs:
117121
- name: Code style with PHP_CodeSniffer
118122
run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr
119123

124+
versions:
125+
runs-on: ubuntu-latest
126+
steps:
127+
- name: Checkout
128+
uses: actions/checkout@v2
129+
130+
- name: Setup PHP, with composer and extensions
131+
uses: shivammathur/setup-php@v2
132+
with:
133+
php-version: 7.4
134+
extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, simplexml, xml, xmlreader, xmlwriter, zip, zlib
135+
coverage: none
136+
tools: cs2pr
137+
138+
- name: Get composer cache directory
139+
id: composer-cache
140+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
141+
142+
- name: Cache composer dependencies
143+
uses: actions/cache@v2
144+
with:
145+
path: ${{ steps.composer-cache.outputs.dir }}
146+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
147+
restore-keys: ${{ runner.os }}-composer-
148+
149+
- name: Install dependencies
150+
run: composer install --no-progress --prefer-dist --optimize-autoloader
151+
152+
- name: Code Version Compatibility check with PHP_CodeSniffer
153+
run: ./vendor/bin/phpcs -q --report-width=200 --report=summary,full src/ --standard=PHPCompatibility --runtime-set testVersion 7.2-
154+
155+
phpstan:
156+
runs-on: ubuntu-latest
157+
steps:
158+
- name: Checkout
159+
uses: actions/checkout@v2
160+
161+
- name: Setup PHP, with composer and extensions
162+
uses: shivammathur/setup-php@v2
163+
with:
164+
php-version: 7.4
165+
extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, simplexml, xml, xmlreader, xmlwriter, zip, zlib
166+
coverage: none
167+
tools: cs2pr
168+
169+
- name: Get composer cache directory
170+
id: composer-cache
171+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
172+
173+
- name: Cache composer dependencies
174+
uses: actions/cache@v2
175+
with:
176+
path: ${{ steps.composer-cache.outputs.dir }}
177+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
178+
restore-keys: ${{ runner.os }}-composer-
179+
180+
- name: Install dependencies
181+
run: composer install --no-progress --prefer-dist --optimize-autoloader
182+
183+
- name: Static analysis with PHPStan
184+
run: ./vendor/bin/phpstan analyse
185+
120186
coverage:
121187
runs-on: ubuntu-latest
122188
steps:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
*.project
99
/.settings
1010
/.idea
11+
12+
## mkdocs output
13+
/site

.php_cs.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ return PhpCsFixer\Config::create()
160160
'php_unit_test_annotation' => true,
161161
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
162162
'php_unit_test_class_requires_covers' => false, // We don't care as much as we should about coverage
163-
'phpdoc_add_missing_param_annotation' => true,
163+
'phpdoc_add_missing_param_annotation' => false, // Don't add things that bring no value
164164
'phpdoc_align' => false, // Waste of time
165165
'phpdoc_annotation_without_dot' => true,
166166
'phpdoc_indent' => true,

CHANGELOG.PHPExcel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ documentation for more information on entering dates into a cell.
15181518
### Bugfixes
15191519

15201520
- PHPExcel->removeSheetByIndex now re-orders sheets after deletion, so no array indexes are lost - @JV
1521-
- PHPExcel_Writer_Excel2007_Worksheet::_writeCols() used direct assignment to $pSheet->getColumnDimension('A')->Width instead of $pSheet->getColumnDimension('A')->setWidth() - @JV
1521+
- PHPExcel_Writer_Excel2007_Worksheet::_writeCols() used direct assignment to $pSheet->getColumnDimension('A')->Width instead of ~~~~$pSheet->getColumnDimension('A')->setWidth() - @JV
15221522
- DocumentProperties used $this->LastModifiedBy instead of $this->_lastModifiedBy. - @JV
15231523

15241524
### General

0 commit comments

Comments
 (0)