Skip to content

Commit 794f0cc

Browse files
authored
Require composer/class-map-generator over composer/composer (#268)
1 parent 13ad7fd commit 794f0cc

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased](https://github.com/BenSampo/laravel-enum/compare/v5.3.0...master)
99

10+
### Changed
11+
12+
- Require composer/class-map-generator over composer/composer [268](https://github.com/BenSampo/laravel-enum/pull/268)
13+
1014
## [5.3.1](https://github.com/BenSampo/laravel-enum/compare/v5.3.0...v5.3.1) - 2022-06-22
1115

1216
### Fixed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"homepage": "https://github.com/bensampo/laravel-enum",
2121
"require": {
2222
"php": "^8",
23-
"composer/composer": "^2.2",
23+
"composer/class-map-generator": "^1",
2424
"illuminate/contracts": "^9",
2525
"illuminate/support": "^9",
2626
"laminas/laminas-code": "^3.4 || ^4",

src/Commands/AbstractAnnotationCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use InvalidArgumentException;
88
use Illuminate\Console\Command;
99
use Illuminate\Filesystem\Filesystem;
10-
use Composer\Autoload\ClassMapGenerator;
10+
use Composer\ClassMapGenerator\ClassMapGenerator;
1111
use Laminas\Code\Generator\DocBlockGenerator;
1212
use Laminas\Code\Reflection\DocBlockReflection;
1313
use Symfony\Component\Console\Input\InputOption;
@@ -73,7 +73,7 @@ public function handle()
7373
protected function annotateFolder()
7474
{
7575
$classMap = ClassMapGenerator::createMap($this->searchDirectory());
76-
76+
7777
/** @var \ReflectionClass[] $classes */
7878
$classes = array_map(function ($class) {
7979
return new ReflectionClass($class);

0 commit comments

Comments
 (0)