Skip to content

Commit 95b2057

Browse files
authored
chore(php): bump minimum to php 8.2 (#2611)
## Description Requirement for #2610 to work, because `symfony/type-info` only support a minimum version of PHP `8.2`. I am fairly convinced that a bump from `8.1` to `8.2` can be done in a minor version bump (compared to `7.4` to `8.1` which I did in a major from `4.x` to `5.x` previously): 1. I have seen other packages do this (One example being [Symfony 6.1](https://symfony.com/blog/symfony-6-1-will-require-php-8-1)) 2. I asked gemini: | Environment Change | Package Version Bump | SemVer Rationale | | ------------------ | -------------------- | ---------------- | | PHP 8.1 to 8.2 | Minor (e.g., 1.3.0) | Backward-Compatible Language Bump: No new major incompatibilities were introduced between 8.1 and 8.2. | | PHP 7.4 to 8.1 | Major (e.g., 2.0.0) | Backward-Incompatible Language Bump: PHP 8.x introduced fundamental, breaking changes that cause 7.x code to fail. | Additionally PHP `8.1` will stop being supported in 1 month (security support until 31 dec 2025) https://www.php.net/supported-versions.php ## What type of PR is this? (check all applicable) - [ ] Bug Fix - [ ] Feature - [ ] Refactor - [ ] Deprecation - [ ] Breaking Change - [ ] Documentation Update - [ ] CI ## Checklist - [ ] I have made corresponding changes to the documentation (`docs/`) - [ ] I have made corresponding changes to the changelog (`CHANGELOG.md`)
1 parent ef14213 commit 95b2057

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Follow these mandatory guidelines when contributing code, documentation, and tra
88

99
* **Project Scope:** This is a **standalone third-party Symfony bundle**.
1010
* **Compatibility:** Code **must** be compatible with **Symfony 6.4, and 7.x** versions.
11-
* **Target PHP:** Use **modern PHP 8.1** syntax and features.
11+
* **Target PHP:** Use **modern PHP 8.2** syntax and features.
1212
* **Deprecations:** **Avoid** using deprecated Symfony or PHP features. Consult the [Symfony Backward Compatibility Promise](https://symfony.com/doc/current/contributing/code/bc.html#working-on-symfony-code) for accepted changes during review.
1313
* **Readability:** Break text lines in documentation at **~72–78 characters** for optimal readability.
1414

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
include:
28-
- php-version: 8.1
28+
- php-version: 8.2
2929
symfony-require: "6.4"
3030
composer-flags: "--prefer-lowest"
31-
- php-version: 8.1
32-
symfony-require: "6.4"
3331
- php-version: 8.2
3432
symfony-require: "6.4"
3533
- php-version: 8.3

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=8.1",
19+
"php": ">=8.2",
2020
"phpdocumentor/reflection-docblock": "^5.0",
2121
"phpdocumentor/type-resolver": "^1.8.2",
2222
"psr/cache": "^1.0 || ^2.0 || ^3.0",

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This bundle supports *Symfony* route requirements, *Symfony* request mapping (:d
1717
For models, it supports the `Symfony serializer`_ , the `JMS serializer`_ and the `willdurand/Hateoas`_ library.
1818
It does also support `Symfony form`_ types.
1919

20-
Attributes are supported from version 4.7 and PHP 8.1.
20+
Attributes are supported from version 4.7 and PHP 8.1 onward.
2121

2222
Migrate from 4.x to 5.0
2323
-----------------------

0 commit comments

Comments
 (0)