diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a3589fc..4e7216d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ jobs: tests: strategy: matrix: - php-versions: ['8.0', '8.1', '8.2'] + php-versions: ['8.1', '8.2'] dependency-versions: ['lowest', 'highest'] runs-on: ubuntu-latest diff --git a/README.md b/README.md index cd22eeb..a1fb93c 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ the use of reflection on production. # Prerequisites -This library needs PHP 8.0+. +This library needs PHP 8.1+. -It has been tested using PHP 8.0 - PHP 8.1 - PHP 8.2. +It has been tested using PHP 8.1 and PHP 8.2. # Installation @@ -143,12 +143,7 @@ class GenerateDependencyInjectionFactories extends \Symfony\Component\Console\Co require_once $fullpath; $astLocator = (new \Roave\BetterReflection\BetterReflection())->astLocator(); - - // for roave/better-reflection 4.x (PHP 7.4) - $reflector = new \Roave\BetterReflection\Reflector\ClassReflector(new Roave\BetterReflection\SourceLocator\Type\SingleFileSourceLocator($fileName, $astLocator)); - $classes = $reflector->getAllClasses(); - // for roave/better-reflection 5.x (PHP 8.0) $reflector = new \Roave\BetterReflection\Reflector\DefaultReflector(new Roave\BetterReflection\SourceLocator\Type\SingleFileSourceLocator($fileName, $astLocator)); $classes = $reflector->reflectAllClasses(); diff --git a/composer.json b/composer.json index 999af67..08e6003 100644 --- a/composer.json +++ b/composer.json @@ -16,9 +16,9 @@ } ], "require": { - "php": ">=8.0", + "php": ">=8.1", "doctrine/annotations": "^1.12|^2.0.0", - "rg/laminas-code": "4.7.4", + "laminas/laminas-code": "^4.13", "psr/log": "^1.0.0" }, "require-dev": {