Skip to content

Commit 0d7c133

Browse files
committed
Remove unnecessary php 8 conditionals
1 parent a559090 commit 0d7c133

File tree

8 files changed

+32
-29
lines changed

8 files changed

+32
-29
lines changed

.github/workflows/symfony.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
php-versions: ['7.3', '7.4', '8.0']
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2.3.4
20+
uses: actions/checkout@v2
2121

2222
- name: Setup PHP with extensions and Composer v2
2323
uses: shivammathur/setup-php@v2
@@ -43,22 +43,14 @@ jobs:
4343
restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer-
4444

4545
- name: Install Composer dependencies
46-
if: matrix.php-versions < 8
4746
run: composer update --no-progress
4847

49-
- name: Install Composer dependencies
50-
if: matrix.php-versions == 8.0
51-
run: composer update --no-progress --ignore-platform-req=php
52-
53-
- name: Download Symfony CLI
54-
run: wget https://get.symfony.com/cli/installer -O - | bash
55-
5648
- name: Update database schema
57-
run: /home/runner/.symfony/bin/symfony console d:s:u -f
49+
run: php bin/console d:s:u -f
5850

5951
- name: Load Doctrine fixtures
60-
run: /home/runner/.symfony/bin/symfony console d:f:l -q
52+
run: php bin/console d:f:l -q
6153

62-
- name: Run functionnal tests
54+
- name: Run functional tests
6355
run: |
6456
vendor/bin/codecept run Functional

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ Minimal site containing functional tests for [Codeception Module Symfony](https:
99
```
1010
2. Install Composer dependencies
1111
```shell
12-
# PHP ^7.2
1312
composer update
14-
15-
# PHP ^8.0
16-
composer update --ignore-platform-req=php
1713
```
1814
3. Update database schema and load Doctrine fixtures
1915
```shell

composer.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Controller/.gitignore

Whitespace-only changes.

src/DataFixtures/.gitignore

Whitespace-only changes.

src/Entity/.gitignore

Whitespace-only changes.

src/Repository/.gitignore

Whitespace-only changes.

symfony.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@
242242
"phpunit/php-file-iterator": {
243243
"version": "3.0.5"
244244
},
245+
"phpunit/php-invoker": {
246+
"version": "3.1.1"
247+
},
245248
"phpunit/php-text-template": {
246249
"version": "2.0.4"
247250
},
@@ -295,12 +298,21 @@
295298
"roave/security-advisories": {
296299
"version": "dev-latest"
297300
},
301+
"sebastian/cli-parser": {
302+
"version": "1.0.1"
303+
},
304+
"sebastian/code-unit": {
305+
"version": "1.0.8"
306+
},
298307
"sebastian/code-unit-reverse-lookup": {
299308
"version": "2.0.3"
300309
},
301310
"sebastian/comparator": {
302311
"version": "4.0.6"
303312
},
313+
"sebastian/complexity": {
314+
"version": "2.0.2"
315+
},
304316
"sebastian/diff": {
305317
"version": "4.0.4"
306318
},
@@ -313,6 +325,9 @@
313325
"sebastian/global-state": {
314326
"version": "5.0.2"
315327
},
328+
"sebastian/lines-of-code": {
329+
"version": "1.0.3"
330+
},
316331
"sebastian/object-enumerator": {
317332
"version": "4.0.4"
318333
},

0 commit comments

Comments
 (0)