Skip to content

Commit

Permalink
Revert laminas-code to upstream (#30)
Browse files Browse the repository at this point in the history
Revert laminas-code to upstream

This also raises the minimum version to PHP 8.1
  • Loading branch information
mdio committed Jan 8, 2024
1 parent 176ca54 commit 9f4a3a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 9f4a3a7

Please sign in to comment.