From ec78ee9791e9b171d8dc4b9dda5057864dbfcb5a Mon Sep 17 00:00:00 2001 From: velkuns Date: Mon, 5 Jan 2026 12:10:30 +0100 Subject: [PATCH] Component Validation: Add support of PHP 8.5 --- .github/workflows/ci.yml | 2 +- .github/workflows/sonarcloud.yml | 4 ++-- .php-cs-fixer.dist.php | 2 +- CHANGELOG.md | 9 +++++++++ Makefile | 2 +- README.md | 2 +- ci/phpmax-compatibility.neon | 2 +- composer.json | 16 ++++++++-------- 8 files changed, 24 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3633fe5..10b872c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: [ '8.3', '8.4' ] + php-versions: [ '8.3', '8.4', '8.5' ] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 7ecfe6e..9130fbb 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -1,4 +1,4 @@ -name: CI +name: SonarQube on: push: @@ -41,6 +41,6 @@ jobs: run: make php/tests # To generate the coverage report - name: SonarQube Scan - uses: SonarSource/sonarqube-scan-action@v5.3.1 + uses: SonarSource/sonarqube-scan-action@v7 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index de5ea3b..d16dbbd 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -4,7 +4,7 @@ //~ Rules ->setRules( [ - '@PER-CS2.0' => true, + '@PER-CS3x0' => true, ] ) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4a4c1c..c5afc99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [6.1.0] - 2026-01-05 +[6.1.0]: https://github.com/eureka-framework/component-validation/compare/6.0.0...6.1.0 +### Added +- Support for PHP 8.5 +### Changed +- Update CI GitHub Action +- Update dev dependencies + + ## [6.0.0] - 2025-08-015 [6.0.0]: https://github.com/eureka-framework/component-validation/compare/5.3.0...6.0.0 ### Added diff --git a/Makefile b/Makefile index 28d874c..d8824f3 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ COMPOSER_BIN := composer PHP_VERSION_MIN := 8.3 -PHP_VERSION_MAX := 8.4 +PHP_VERSION_MAX := 8.5 define header = @if [ -t 1 ]; then printf "\n\e[37m\e[100m \e[104m $(1) \e[0m\n"; else printf "\n### $(1)\n"; fi endef diff --git a/README.md b/README.md index 566b1f2..52c910d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # component-validation [![Current version](https://img.shields.io/packagist/v/eureka/component-validation.svg?logo=composer)](https://packagist.org/packages/eureka/component-validation) -[![Supported PHP version](https://img.shields.io/static/v1?logo=php&label=PHP&message=8.3%20-%208.4&color=777bb4)](https://packagist.org/packages/eureka/component-validation) +[![Supported PHP version](https://img.shields.io/static/v1?logo=php&label=PHP&message=>%3D8.3&color=777bb4)](https://packagist.org/packages/eureka/component-validation) ![CI](https://github.com/eureka-framework/component-validation/workflows/CI/badge.svg) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=eureka-framework_component-validation&metric=alert_status)](https://sonarcloud.io/dashboard?id=eureka-framework_component-validation) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=eureka-framework_component-validation&metric=coverage)](https://sonarcloud.io/dashboard?id=eureka-framework_component-validation) diff --git a/ci/phpmax-compatibility.neon b/ci/phpmax-compatibility.neon index 014ae77..010f240 100644 --- a/ci/phpmax-compatibility.neon +++ b/ci/phpmax-compatibility.neon @@ -3,7 +3,7 @@ includes: - ./../vendor/phpstan/phpstan-phpunit/rules.neon parameters: - phpVersion: 80400 + phpVersion: 80500 level: 0 paths: diff --git a/composer.json b/composer.json index 70618fa..4d7b43a 100644 --- a/composer.json +++ b/composer.json @@ -30,18 +30,18 @@ }, "require": { - "php": "8.3.*||8.4.*", + "php": ">=8.3", "ext-filter": "*", "ext-mbstring": "*" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.86.0", - "phpstan/phpstan": "^2.1.22", - "phpstan/phpstan-phpunit": "^2.0.7", - "phpstan/phpstan-strict-rules": "^2.0.6", - "phpunit/phpcov": "^11.0.1", - "phpunit/phpunit": "^12.3.4", - "shipmonk/composer-dependency-analyser": "^1.8.3" + "friendsofphp/php-cs-fixer": "^3.92.4", + "phpstan/phpstan": "^2.1.33", + "phpstan/phpstan-phpunit": "^2.0.11", + "phpstan/phpstan-strict-rules": "^2.0.7", + "phpunit/phpcov": "^11.0.3", + "phpunit/phpunit": "^12.5.4", + "shipmonk/composer-dependency-analyser": "^1.8.4" } }