Skip to content

Commit

Permalink
Merge pull request #14 from vjandrea/symfony-v5
Browse files Browse the repository at this point in the history
Fixed Symfony 4.4+ deprecations
  • Loading branch information
dunglas authored Aug 11, 2020
2 parents 688bb17 + e12b2a7 commit c09fc76
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
service_name: travis-ci

src_dir: .
entry_point: .
coverage_clover: coverage.xml
json_path: coveralls-upload.json
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('coop_tilleuls_ovh');
$treeBuilder = new TreeBuilder('coop_tilleuls_ovh');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->scalarNode('application_key')->isRequired()->cannotBeEmpty()->end()
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
}
],
"require": {
"php": ">=5.5",
"symfony/dependency-injection" : "~2.3|~3.0|~4.0",
"symfony/config" : "~2.3|~3.0|~4.0",
"symfony/http-kernel": "~2.3|~3.0|~4.0",
"ovh/ovh": "~2.0"
"php": ">=7.2",
"symfony/dependency-injection" : "~4.0|~5.0",
"symfony/config" : "~4.0|~5.0",
"symfony/http-kernel": "~4.0|~5.0",
"ovh/ovh": "^2.0"
},
"autoload": {
"psr-4": { "CoopTilleuls\\OvhBundle\\": "" }
},
"require-dev": {
"phpspec/phpspec": "~2.1",
"henrikbjorn/phpspec-code-coverage": "~1.0",
"satooshi/php-coveralls": "~0.6"
"phpspec/phpspec": "^2.1",
"friends-of-phpspec/phpspec-code-coverage": "^1.0",
"php-coveralls/php-coveralls": "^2.0"
}
}
2 changes: 1 addition & 1 deletion phpspec.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
extensions:
- PhpSpec\Extension\CodeCoverageExtension
- LeanPHP\PhpSpec\CodeCoverage\CodeCoverageExtension

code_coverage:
format: clover
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function it_loads(ContainerBuilder $container)
$container->setDefinition('coop_tilleuls_ovh.api', Argument::type('Symfony\Component\DependencyInjection\Definition'))->shouldBeCalled();
$container->setAlias('ovh', Argument::type('Symfony\Component\DependencyInjection\Alias'))->shouldBeCalled();
$container->setAlias('Ovh\Api', Argument::type('Symfony\Component\DependencyInjection\Alias'))->shouldBeCalled();
$container->removeBindings('coop_tilleuls_ovh.api')->shouldBeCalled();

$configs = array(
array(
Expand Down

0 comments on commit c09fc76

Please sign in to comment.