Skip to content

Commit e12b2a7

Browse files
committed
Fixed Symfony 4.4+ deprecations
1 parent 688bb17 commit e12b2a7

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.coveralls.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
service_name: travis-ci
22

3-
src_dir: .
3+
entry_point: .
44
coverage_clover: coverage.xml
55
json_path: coveralls-upload.json

DependencyInjection/Configuration.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class Configuration implements ConfigurationInterface
2626
*/
2727
public function getConfigTreeBuilder()
2828
{
29-
$treeBuilder = new TreeBuilder();
30-
$rootNode = $treeBuilder->root('coop_tilleuls_ovh');
29+
$treeBuilder = new TreeBuilder('coop_tilleuls_ovh');
30+
$rootNode = $treeBuilder->getRootNode();
3131
$rootNode
3232
->children()
3333
->scalarNode('application_key')->isRequired()->cannotBeEmpty()->end()

composer.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
}
1414
],
1515
"require": {
16-
"php": ">=5.5",
17-
"symfony/dependency-injection" : "~2.3|~3.0|~4.0",
18-
"symfony/config" : "~2.3|~3.0|~4.0",
19-
"symfony/http-kernel": "~2.3|~3.0|~4.0",
20-
"ovh/ovh": "~2.0"
16+
"php": ">=7.2",
17+
"symfony/dependency-injection" : "~4.0|~5.0",
18+
"symfony/config" : "~4.0|~5.0",
19+
"symfony/http-kernel": "~4.0|~5.0",
20+
"ovh/ovh": "^2.0"
2121
},
2222
"autoload": {
2323
"psr-4": { "CoopTilleuls\\OvhBundle\\": "" }
2424
},
2525
"require-dev": {
26-
"phpspec/phpspec": "~2.1",
27-
"henrikbjorn/phpspec-code-coverage": "~1.0",
28-
"satooshi/php-coveralls": "~0.6"
26+
"phpspec/phpspec": "^2.1",
27+
"friends-of-phpspec/phpspec-code-coverage": "^1.0",
28+
"php-coveralls/php-coveralls": "^2.0"
2929
}
3030
}

phpspec.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
extensions:
2-
- PhpSpec\Extension\CodeCoverageExtension
2+
- LeanPHP\PhpSpec\CodeCoverage\CodeCoverageExtension
33

44
code_coverage:
55
format: clover

spec/CoopTilleuls/OvhBundle/DependencyInjection/CoopTilleulsOvhExtensionSpec.php

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function it_loads(ContainerBuilder $container)
4545
$container->setDefinition('coop_tilleuls_ovh.api', Argument::type('Symfony\Component\DependencyInjection\Definition'))->shouldBeCalled();
4646
$container->setAlias('ovh', Argument::type('Symfony\Component\DependencyInjection\Alias'))->shouldBeCalled();
4747
$container->setAlias('Ovh\Api', Argument::type('Symfony\Component\DependencyInjection\Alias'))->shouldBeCalled();
48+
$container->removeBindings('coop_tilleuls_ovh.api')->shouldBeCalled();
4849

4950
$configs = array(
5051
array(

0 commit comments

Comments
 (0)