Skip to content

Commit 4e062a7

Browse files
committed
Merge branch '1.6' into 1.7
Conflicts: .github/workflows/ci.yml composer.json
2 parents b32c58b + 7db6d34 commit 4e062a7

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

.github/workflows/ci.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ jobs:
77
strategy:
88
matrix:
99
os: [ubuntu-latest]
10-
php: ['7.3', '7.4', '8.0']
11-
doctrine: ['2.6', '2.7', '2.8', '2.9']
12-
exclude:
13-
- php: '8.0'
14-
doctrine: '2.6'
10+
php: ['7.3', '7.4', '8.0', '8.1']
11+
doctrine: ['2.8', '2.9', '2.10', '2.11']
1512
steps:
1613
- uses: actions/checkout@v2
1714
- name: Setup PHP
@@ -31,10 +28,8 @@ jobs:
3128
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
3229
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
3330
restore-keys: ${{ runner.os }}-composer-
34-
- name: Install Composer dependencies
35-
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
3631
- name: Install dependencies for doctrine/orm ${{ matrix.doctrine }}
37-
run: composer require --no-progress --no-scripts --no-plugins -v -W doctrine/orm ~${{ matrix.doctrine }}
32+
run: composer require --no-progress --no-scripts --no-plugins -v -W doctrine/orm "~${{ matrix.doctrine }}.0"
3833
- name: PHPUnit
3934
run: vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-text
4035
- uses: codecov/codecov-action@v1

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.3|^8.0",
20+
"doctrine/annotations": "^1",
2021
"doctrine/cache": "^1",
2122
"doctrine/dbal": "^2.13",
2223
"doctrine/orm": "^2.6",

src/Console/GenerateEntitiesCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function handle(ManagerRegistry $registry)
7878
$entityGenerator->setGenerateStubMethods($this->option('generate-methods'));
7979
$entityGenerator->setRegenerateEntityIfExists($this->option('regenerate-entities'));
8080
$entityGenerator->setUpdateEntityIfExists($this->option('update-entities'));
81-
$entityGenerator->setNumSpaces($this->option('num-spaces'));
81+
$entityGenerator->setNumSpaces((int) $this->option('num-spaces'));
8282
$entityGenerator->setBackupExisting(!$this->option('no-backup'));
8383

8484
if (($extend = $this->option('extend')) !== null) {

0 commit comments

Comments
 (0)