Skip to content

Commit

Permalink
Fix issues due to phpcs update
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Sep 30, 2019
1 parent ebe6523 commit 25790a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Tests/DependencyInjection/AbstractMongoDBExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ public function testLoadSimpleSingleConnection()
$this->assertArrayHasKey('typeMap', $arguments[2]);
$this->assertSame(['root' => 'array', 'document' => 'array'], $arguments[2]['typeMap']);

$definition = $container->getDefinition('doctrine_mongodb.odm.default_configuration');
$methodCalls = $definition->getMethodCalls();
$methodNames = array_map(static function ($call) {
$definition = $container->getDefinition('doctrine_mongodb.odm.default_configuration');
$methodCalls = $definition->getMethodCalls();
$methodNames = array_map(static function ($call) {
return $call[0];
}, $methodCalls);
$this->assertInternalType('integer', $pos = array_search('setDefaultDB', $methodNames));
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/DoctrineMongoDBExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function testFactoriesAreRegistered()

public function testPublicServicesAndAliases()
{
$loader = new DoctrineMongoDBExtension();
$loader = new DoctrineMongoDBExtension();
$loader->load(self::buildConfiguration(), $container = $this->buildMinimalContainer());

$this->assertTrue($container->getDefinition('doctrine_mongodb')->isPublic());
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"doctrine/coding-standard": "^6.0",
"doctrine/data-fixtures": "^1.2.2",
"phpunit/phpunit": "^7.3",
"squizlabs/php_codesniffer": "^3.5",
"symfony/form": "^3.4 || ^4.0",
"symfony/phpunit-bridge": "^3.4 || ^4.0",
"symfony/yaml": "^3.4 || ^4.0"
Expand Down

0 comments on commit 25790a6

Please sign in to comment.