From c3acafca612282faee0d2578d5a209117ee9ef25 Mon Sep 17 00:00:00 2001 From: Jan Lam <5459235+janlam7@users.noreply.github.com> Date: Thu, 6 Jun 2024 09:35:45 +0200 Subject: [PATCH] Add Symfony 6 compatibility, removing unneeded compatibilities (#74) * Drop php<=8.0 support, add php>=8.1 support * Drop symfony 4 support, add symfony 6 support * Remove useless @return annotation --- .github/workflows/main.yaml | 2 +- composer.json | 4 ++-- src/ReflectionMethod.php | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a92533d..e8242d1 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - php-versions: ['8.0', '8.1'] + php-versions: ['8.1', '8.2', '8.3'] name: PHP ${{ matrix.php-versions }} steps: - uses: actions/checkout@v2 diff --git a/composer.json b/composer.json index c06457b..068d69a 100644 --- a/composer.json +++ b/composer.json @@ -4,11 +4,11 @@ "description": "Installer for all the Hostnet Doctrine entity libraries", "license": "MIT", "require": { - "php": "^8.0", + "php": "^8.1", "composer-plugin-api": "^2.0.0", "doctrine/annotations": "^1.13.2", "phpdocumentor/type-resolver": "^1.4.0", - "symfony/filesystem": "^4.4||^5.0", + "symfony/filesystem": "^5.4||^6.0", "twig/twig": "^3.0" }, "require-dev": { diff --git a/src/ReflectionMethod.php b/src/ReflectionMethod.php index 9dbf047..f783c58 100644 --- a/src/ReflectionMethod.php +++ b/src/ReflectionMethod.php @@ -37,9 +37,6 @@ public function getName(): string return $this->method->getName(); } - /** - * @return array - */ public function getParameters(): array { return array_map(