Skip to content

Commit 5c16664

Browse files
authored
Merge pull request #15 from pluswerk/feature/grumphp-update
⬆️ update to be compatible with grumphp to 1.3 but php only >=7.3
2 parents 75d2c30 + 8572e11 commit 5c16664

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
language: php
2-
dist: trusty
32
sudo: false
43

54
git:
65
depth: 5
76

87
php:
9-
- 7.2
108
- 7.3
119
- 7.4
10+
- 8.0
1211
- nightly
1312

1413
env:
@@ -29,9 +28,9 @@ before_install:
2928
- phpenv config-rm xdebug.ini || echo "xdebug not available"
3029

3130
install:
32-
- if [ -z "$dependencies" ]; then composer install --no-progress --no-scripts --no-suggest -n; fi;
33-
- if [ "$dependencies" = "lowest" ]; then composer update --no-progress --no-scripts --no-suggest -n --prefer-lowest; fi;
34-
- if [ "$dependencies" = "highest" ]; then composer require phpro/grumphp:* --no-progress --no-scripts --no-suggest -n; fi;
31+
- if [ -z "$dependencies" ]; then composer install --no-progress --no-scripts -n; fi;
32+
- if [ "$dependencies" = "lowest" ]; then composer update --no-progress --no-scripts -n --prefer-lowest; fi;
33+
- if [ "$dependencies" = "highest" ]; then composer require phpro/grumphp:* --no-progress --no-scripts -n; fi;
3534

3635
script:
3736
- ./vendor/bin/grumphp run

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"config": {
1414
"platform": {
15-
"php": "7.2"
15+
"php": "7.3"
1616
}
1717
},
1818
"support": {
@@ -25,8 +25,9 @@
2525
}
2626
},
2727
"require": {
28-
"php": ">=7.2",
29-
"phpro/grumphp": "0.19.*"
28+
"php": ">=7.3",
29+
"phpro/grumphp": "^1.3.3",
30+
"opis/closure": "^3.6.2"
3031
},
3132
"require-dev": {
3233
"squizlabs/php_codesniffer": ">=3.5.0 <4.0.0"

src/ExtensionLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
class ExtensionLoader implements ExtensionInterface
1010
{
11-
public function load(ContainerBuilder $container)
11+
public function load(ContainerBuilder $container): void
1212
{
13-
return $container->register('task.plus_bom_fixer', BomFixerTask::class)
13+
$container->register('task.plus_bom_fixer', BomFixerTask::class)
1414
->addArgument(new Reference('process_builder'))
1515
->addArgument(new Reference('formatter.raw_process'))
1616
->addTag('grumphp.task', ['task' => 'plus_bom_fixer']);

0 commit comments

Comments
 (0)