Skip to content

Commit 1f8a3bd

Browse files
committed
Merge branch 'release/2.3.0'
2 parents f608fb7 + e6638e8 commit 1f8a3bd

File tree

8 files changed

+45
-48
lines changed

8 files changed

+45
-48
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,19 @@ on:
66

77
jobs:
88
phpstan:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-22.04
1010
strategy:
1111
matrix:
12-
php:
13-
- '7.4'
14-
- '8.2'
15-
# - '8.3'
1612
include:
1713
- description: 'Symfony 5.4'
1814
php: '7.4'
1915
symfony: 5.4.*
20-
- description: 'Symfony 6.3'
21-
php: '8.2'
22-
symfony: 6.3.*
23-
# - description: 'Symfony 7.0'
24-
# php: '8.3'
25-
# symfony: 7.0.*
16+
- description: 'Symfony 6.4'
17+
php: '8.3'
18+
symfony: 6.4.*
19+
- description: 'Symfony 7.1'
20+
php: '8.4'
21+
symfony: 7.1.*
2622
name: PHPStan - PHP ${{ matrix.php }} tests (${{ matrix.description }})
2723
steps:
2824
- name: Checkout
@@ -36,45 +32,29 @@ jobs:
3632
- run: |
3733
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
3834
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
39-
- run: vendor/bin/phpstan analyse -c phpstan.neon.dist --error-format=github
35+
- run: vendor/bin/phpstan analyse -c phpstan.dist.neon --error-format=github
4036

41-
cs-fixer:
42-
runs-on: ubuntu-20.04
43-
name: PHP-CS-Fixer
44-
steps:
45-
- name: Checkout
46-
uses: actions/checkout@v4
47-
- name: Fix CS
48-
uses: docker://oskarstark/php-cs-fixer-ga
4937
tests:
50-
runs-on: ubuntu-20.04
38+
runs-on: ubuntu-22.04
5139
strategy:
5240
matrix:
53-
php:
54-
- '7.4'
55-
- '8.1'
56-
- '8.2'
57-
- '8.3'
5841
include:
5942
- description: 'Symfony 5.4'
6043
php: '7.4'
61-
symfony: 5.4.*
44+
symfony: '5.4.*'
6245
composer_option: '--prefer-lowest'
6346
- description: 'Symfony 5.4'
64-
php: '8.2'
65-
symfony: 5.4.*
66-
- description: 'Symfony 6.3'
67-
php: '8.2'
68-
symfony: 6.3
47+
php: '8.3'
48+
symfony: '5.4.*'
6949
- description: 'Symfony 6.4'
70-
php: '8.2'
71-
symfony: 6.4
72-
- description: 'Symfony 7.0'
7350
php: '8.3'
74-
symfony: 7.0
51+
symfony: '6.4'
7552
- description: 'Symfony 7.1'
7653
php: '8.3'
77-
symfony: 7.1
54+
symfony: '7.1'
55+
- description: 'Symfony 7.2'
56+
php: '8.4'
57+
symfony: '7.2.x-dev'
7858

7959
name: PHP ${{ matrix.php }} tests (${{ matrix.description }})
8060
steps:

.github/workflows/lint.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: [push, pull_request]
2+
name: Lint
3+
jobs:
4+
php-cs-fixer:
5+
name: PHP-CS-Fixer
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: PHP-CS-Fixer
10+
uses: docker://oskarstark/php-cs-fixer-ga
11+
with:
12+
args: --diff --dry-run -vvv

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
'on_multiline' => 'ensure_fully_multiline',
2424
'keep_multiple_spaces_after_comma' => false,
2525
],
26+
'trailing_comma_in_multiline' => ['elements' => ['array_destructuring', 'arrays', 'match']],
2627
])
2728
->setFinder($finder)
2829
;

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## 2.3.0 - 2024-11-04
10+
### Added
11+
- Added support for PHP 8.4
12+
913
## 2.2.0 - 2024-06-21
1014
### Changed
11-
- Resolve Symfony 7.1 deprecation
15+
- Resolve Symfony 7.1 deprecation
1216

1317
## 2.1.0 - 2023-11-20
1418
### Changed

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": "7.4.* || 8.0.* || 8.1.* || 8.2.* || 8.3.*",
19+
"php": "7.4.* || 8.0.* || 8.1.* || 8.2.* || 8.3.* || 8.4.*",
2020
"pontedilana/php-weasyprint": "^1.0",
2121
"symfony/config": "^5.4 || ^6.3 || ^7.0",
2222
"symfony/dependency-injection": "^5.4 || ^6.3 || ^7.0",
@@ -25,12 +25,12 @@
2525
},
2626
"require-dev": {
2727
"doctrine/annotations": "^1.11 || ^2.0",
28-
"friendsofphp/php-cs-fixer": "^3.13",
29-
"phpstan/extension-installer": "^1.1",
30-
"phpstan/phpstan": "^1.2",
31-
"phpstan/phpstan-phpunit": "^1.0",
32-
"phpstan/phpstan-symfony": "^1.0",
33-
"phpunit/phpunit": "^9.5",
28+
"friendsofphp/php-cs-fixer": "^3.64",
29+
"phpstan/extension-installer": "^1.4",
30+
"phpstan/phpstan": "^1.12",
31+
"phpstan/phpstan-phpunit": "^1.4",
32+
"phpstan/phpstan-symfony": "^1.4",
33+
"phpunit/phpunit": "^9.6",
3434
"symfony/framework-bundle": "^5.4 || ^6.3 || ^7.0",
3535
"symfony/phpunit-bridge": "^5.4 || ^6.3 || ^7.0",
3636
"symfony/validator": "^5.4 || ^6.3 || ^7.0",
@@ -57,6 +57,6 @@
5757
"check-cs": "vendor/bin/php-cs-fixer fix --diff --dry-run --verbose",
5858
"fix-cs": "vendor/bin/php-cs-fixer fix --verbose",
5959
"static-analysis": "vendor/bin/phpstan analyse --ansi",
60-
"test": "vendor/bin/simple-phpunit"
60+
"test": "vendor/bin/phpunit"
6161
}
6262
}
File renamed without changes.

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</exclude>
1818
</coverage>
1919
<php>
20-
<server name="SYMFONY_PHPUNIT_VERSION" value="9.5"/>
20+
<server name="SYMFONY_PHPUNIT_VERSION" value="9.6"/>
2121
</php>
2222
<listeners>
2323
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>

src/WeasyPrint/Response/WeasyPrintResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(
2323
ResponseHeaderBag::DISPOSITION_ATTACHMENT,
2424
];
2525
if (!\in_array($contentDisposition, $contentDispositionDirectives, true)) {
26-
throw new \InvalidArgumentException(sprintf('Expected one of the following directives: "%s", but "%s" given.', implode('", "', $contentDispositionDirectives), $contentDisposition));
26+
throw new \InvalidArgumentException(\sprintf('Expected one of the following directives: "%s", but "%s" given.', implode('", "', $contentDispositionDirectives), $contentDisposition));
2727
}
2828

2929
parent::__construct($content, $status, $headers);

0 commit comments

Comments
 (0)