Skip to content

Commit cbd8bed

Browse files
authored
Merge pull request #146 from vaimo/feature/symfony-console-8
Feature/symfony console 8
2 parents 4d007e2 + 5efa616 commit cbd8bed

File tree

11 files changed

+59
-26
lines changed

11 files changed

+59
-26
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@ jobs:
1010
strategy:
1111
matrix:
1212
versions: [
13-
{ php: "7.0.33", composer: 2.2.26 },
14-
{ php: "7.1", composer: 2.2.26 },
15-
{ php: "7.2", composer: 2.2.26 },
16-
{ php: "7.3", composer: 2.2.26 },
17-
{ php: "7.4", composer: 2.3.10 },
18-
{ php: "8.0", composer: 2.3.10 },
19-
{ php: "8.1", composer: 2.3.10 },
20-
{ php: "8.2", composer: 2.7.9 },
21-
{ php: "8.3", composer: 2.7.9 },
22-
{ php: "8.4", composer: 2.8.12 },
23-
{ php: "8.5", composer: 2.9.4 }
13+
{ php: "7.1.33", composer: 2.2.26 },
14+
{ php: "7.2.34", composer: 2.2.26 },
15+
{ php: "7.3.33", composer: 2.2.26 },
16+
{ php: "7.4.33", composer: 2.3.10 },
17+
{ php: "8.0.30", composer: 2.3.10 },
18+
{ php: "8.1.34", composer: 2.3.10 },
19+
{ php: "8.2.30", composer: 2.7.9 },
20+
{ php: "8.3.30", composer: 2.7.9 },
21+
{ php: "8.4.17", composer: 2.8.12 },
22+
{ php: "8.5.2", composer: 2.9.4 }
2423
]
2524
steps:
2625
- uses: actions/checkout@v3

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,11 @@ auto-loader generation), developers are advised to re-execute `composer install`
142142
Ideally, plugins should always be updated with explicit `--no-plugins` flag added to the `composer update`
143143
call to avoid issues that plugin usage with potentially mixed logic from two different plugin releases
144144
being in use.
145+
146+
## Composer 1
147+
148+
After officially dying in late 2025, hopefully this is not a concern for many, but in case you do
149+
need the patcher with Composer 1, we're suggesting using version 5.5.4 of the package. This is the
150+
last version where we've been able to verify Composer 1 support. Version 5 may still receive some
151+
updates, and we try to make sure they're backwards compatible, but means to verify this have become
152+
very limited.

changelog.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,33 @@
44
"possible to generate change-logs in other formats as well (when needed) and to do automatic releases based on",
55
"added change-log records. More on how to use it: https://github.com/vaimo/composer-changelogs"
66
],
7+
"6.0.0": {
8+
"breaking": [
9+
"Dropped possibility to install the package with Composer 1 as we haven't been able to guarantee the support since 5.5.4",
10+
"Dropped possibility to install the package with PHP 7.0 in favor of symfony/console 8",
11+
"Updated Composer command classes with symfony/console 8 support, which include void return types that are only supported in PHP >=7.1"
12+
],
13+
"feature": [
14+
"Added support for symfony/console 8"
15+
],
16+
"maintenance": [
17+
"Updated README files related to Composer 1 and release branches"
18+
]
19+
},
20+
"5.6.0": {
21+
"feature": [
22+
"Added support for symfony/console 7: https://github.com/vaimo/composer-patches/pull/139"
23+
],
24+
"maintenance": [
25+
"Dropped Composer 1 from Github workflows of the repository",
26+
"Updated testsuite and dependency checks ran in workflows to take symfony/console 7 into account"
27+
]
28+
},
29+
"5.5.4": {
30+
"fix": [
31+
"Updated vaimo/topological-sort dependency to allow installing latest version with PHP compatibility improvements: https://github.com/vaimo/composer-patches/pull/135"
32+
]
33+
},
734
"5.5.3": {
835
"fix": [
936
"Fix issue where Composer version comparisons did not work in preview builds of Composer: https://github.com/vaimo/composer-patches/pull/134"

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
"license": "MIT",
55
"description": "Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.",
66
"require": {
7-
"php": ">=7.0.0",
7+
"php": ">=7.1.0",
88
"ext-json": "*",
9-
"composer-plugin-api": "^1.0 || ^2.0",
10-
"composer-runtime-api": "^1.0 || ^2.0",
9+
"composer-plugin-api": "^2.0",
10+
"composer-runtime-api": "^2.0",
1111
"loophp/phposinfo": "^1.6 || ^1.7",
1212
"seld/jsonlint": "^1.7.1",
13-
"symfony/console": "^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
13+
"symfony/console": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0",
1414
"vaimo/topological-sort": "^1.0 || ^2.0"
1515
},
1616
"require-dev": {
17-
"composer/composer": "^1.0 || ^2.0",
17+
"composer/composer": "^2.0",
1818
"vaimo/composer-patches-proxy": "1.0.0",
1919
"phpcompatibility/php-compatibility": ">=9.1.1",
2020
"squizlabs/php_codesniffer": ">=2.9.2",

docs/DEVELOPMENT.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ making the changes there and merging them upwards to newer MAJOR versions.
1717
Note that when dealing with bug-fixes, developer MUST use the lowest MAJOR version as starting point that
1818
has said bug/issue rather than just fixing it on the latest line.
1919

20-
> **Note:** As of 2025 although we have major branches for versions 3 and 4, these have not been maintained! There's
21-
> also currently no intention to do so, since master branch (version 5) is so far ahead of the two. If there's ever
22-
> going to be version 6 of the package, then we should continue the practice of maintaining also past major versions.
23-
> Until then this instruction about using lowest major release branch can be ignored!
20+
> **Note:** As of 2025 although we have major branches for versions 3 and 4, these have not been maintained!
21+
> There's also currently no intention to do so, since version 5 is so far ahead of the two. Consider
22+
> version 5 the lowest MAJOR release branch!
2423
2524
## Commands
2625

src/Composer/Commands/ApplyCommand.php

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

88
class ApplyCommand extends \Vaimo\ComposerPatches\Composer\Commands\PatchCommand
99
{
10-
protected function configure()
10+
protected function configure(): void
1111
{
1212
parent::configure();
1313

src/Composer/Commands/ListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class ListCommand extends \Composer\Command\BaseCommand
2727
{
28-
protected function configure()
28+
protected function configure(): void
2929
{
3030
parent::configure();
3131

src/Composer/Commands/PatchCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class PatchCommand extends \Composer\Command\BaseCommand
2626
{
27-
protected function configure()
27+
protected function configure(): void
2828
{
2929
$this->setName('patch');
3030
$this->setDescription('Apply registered patches to current project');

src/Composer/Commands/RedoCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class RedoCommand extends \Vaimo\ComposerPatches\Composer\Commands\PatchCommand
1111
{
12-
protected function configure()
12+
protected function configure(): void
1313
{
1414
parent::configure();
1515

src/Composer/Commands/UndoCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class UndoCommand extends \Vaimo\ComposerPatches\Composer\Commands\PatchCommand
1111
{
12-
protected function configure()
12+
protected function configure(): void
1313
{
1414
parent::configure();
1515

0 commit comments

Comments
 (0)