Skip to content

Add PHP versions 8.3, 8.4, and 8.5 to CI matrix#84

Merged
pyrech merged 6 commits intopyrech:mainfrom
AlexSkrypnyk:patch-1
Nov 27, 2025
Merged

Add PHP versions 8.3, 8.4, and 8.5 to CI matrix#84
pyrech merged 6 commits intopyrech:mainfrom
AlexSkrypnyk:patch-1

Conversation

@AlexSkrypnyk
Copy link
Contributor

@AlexSkrypnyk AlexSkrypnyk commented Nov 26, 2025

Closes #83

This also updates min PHP requirement to 8.1

7.4 is EOL 3 years (https://endoflife.date/php)

Compatibility with 8.4+ required removing some code, which made it incompatible with 7.4

@AlexSkrypnyk
Copy link
Contributor Author

@pyrech
could you please allow this PR to run in GHA. thank you

@AlexSkrypnyk AlexSkrypnyk marked this pull request as draft November 26, 2025 11:43
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v6
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2 no longer supported and does not run in GHA

name: ['']
include:
- php-version: 7.4
- php-version: 8.1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lowest are still tested with the lowest version

composer-flags: '--prefer-lowest'
name: '(prefer lowest dependencies)'
- php-version: 8.1
- php-version: 8.5
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

highest are still tested with dev


- name: Cache composer dependencies
uses: actions/cache@v2
uses: actions/cache@v4
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2 no longer supported and does not run in GHA

string $key,
$default,
string $additionalMessage = ''
string $additionalMessage = '',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CS fix

// Sorry for this, I couldn't find any way to get the path of the current root package
$reflection = new \ReflectionClass($composerConfig);
$property = $reflection->getProperty('baseDir');
$property->setAccessible(true);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP 8.5 deprecation

}

public function getOutput(OperationInterface $operation, UrlGenerator $urlGenerator = null): array
public function getOutput(OperationInterface $operation, ?UrlGenerator $urlGenerator = null): array
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CS fix

"composer/composer": "^1.1 || ^2.0",
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^1.9",
"symfony/console": "^5.4.11 || ^6.0 || ^7.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5.4 for lowest

@AlexSkrypnyk AlexSkrypnyk marked this pull request as ready for review November 26, 2025 12:05
@pyrech
Copy link
Owner

pyrech commented Nov 26, 2025

Thanks for your PR @AlexSkrypnyk 🎉 I reenabled the CI workflow.

Also, could you add a note on the changelog to mention the support removal for PHP < 8.1?

@AlexSkrypnyk
Copy link
Contributor Author

@pyrech
Please review

Copy link
Owner

@pyrech pyrech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks @AlexSkrypnyk

@pyrech pyrech merged commit 0f8a3a5 into pyrech:main Nov 27, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 8.3, 8.4 and 8.5 support

2 participants