Skip to content

Commit

Permalink
Merge pull request #932 from patrickjahns/bump-coding-standard-6.0
Browse files Browse the repository at this point in the history
Updated doctrine/coding-standard to 6.0
  • Loading branch information
alcaeus committed Apr 2, 2019
2 parents ab34380 + 181cc55 commit 4f0f2d1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Controller/ProfilerController.php
Expand Up @@ -86,6 +86,7 @@ private function explainSQLServerPlatform(Connection $connection, $query)

$stmt = $connection->executeQuery($sql, $params, $query['types']);
$stmt->nextRowset();

return $stmt->fetchAll(PDO::FETCH_ASSOC);
}

Expand Down
1 change: 1 addition & 0 deletions DataCollector/DoctrineDataCollector.php
Expand Up @@ -221,6 +221,7 @@ public function getGroupedQueries()
if ($a['executionMS'] === $b['executionMS']) {
return 0;
}

return $a['executionMS'] < $b['executionMS'] ? 1 : -1;
});
$this->groupedQueries[$connection] = $connectionGroupedQueries;
Expand Down
1 change: 0 additions & 1 deletion Tests/Repository/ContainerRepositoryFactoryTest.php
Expand Up @@ -81,7 +81,6 @@ public function testServiceRepositoriesCanNotExtendsEntityRepository()
$this->assertSame($repo, $actualRepo);
}


/**
* @expectedException \RuntimeException
* @expectedExceptionMessage The "Doctrine\Bundle\DoctrineBundle\Tests\Repository\StubServiceRepository" entity repository implements "Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryInterface", but its service could not be found. Make sure the service exists and is tagged with "doctrine.repository_service".
Expand Down
1 change: 1 addition & 0 deletions Twig/DoctrineExtension.php
Expand Up @@ -290,6 +290,7 @@ public function replaceQueryParameters($query, $parameters)
'/\?|((?<!:):[a-z0-9_]+)/i',
static function ($matches) use ($parameters, &$i) {
$key = substr($matches[0], 1);

if (! array_key_exists($i, $parameters) && ($key === false || ! array_key_exists($key, $parameters))) {
return $matches[0];
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -44,7 +44,7 @@
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "7.0",
"symfony/web-profiler-bundle": "^3.4|^4.1",
"doctrine/coding-standard": "^5.0"
"doctrine/coding-standard": "^6.0"
},
"conflict": {
"doctrine/orm": "<2.6",
Expand Down

0 comments on commit 4f0f2d1

Please sign in to comment.