Skip to content

Commit 572a5d8

Browse files
committed
Merge branch '5.1' into 5.x
2 parents 58e730c + fa8807f commit 572a5d8

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

DataCollector/DoctrineDataCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private function sanitizeQuery(string $connectionName, array $query): array
191191
}
192192
}
193193

194-
list($query['params'][$j], $explainable, $runnable) = $this->sanitizeParam($param, $e);
194+
[$query['params'][$j], $explainable, $runnable] = $this->sanitizeParam($param, $e);
195195
if (!$explainable) {
196196
$query['explainable'] = false;
197197
}
@@ -227,7 +227,7 @@ private function sanitizeParam($var, ?\Throwable $error): array
227227
$a = [];
228228
$explainable = $runnable = true;
229229
foreach ($var as $k => $v) {
230-
list($value, $e, $r) = $this->sanitizeParam($v, null);
230+
[$value, $e, $r] = $this->sanitizeParam($v, null);
231231
$explainable = $explainable && $e;
232232
$runnable = $runnable && $r;
233233
$a[$k] = $value;

DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private function addTaggedSubscribers(ContainerBuilder $container)
6565
$taggedSubscribers = $this->findAndSortTags($subscriberTag, $container);
6666

6767
foreach ($taggedSubscribers as $taggedSubscriber) {
68-
list($id, $tag) = $taggedSubscriber;
68+
[$id, $tag] = $taggedSubscriber;
6969
$connections = isset($tag['connection']) ? [$tag['connection']] : array_keys($this->connections);
7070
foreach ($connections as $con) {
7171
if (!isset($this->connections[$con])) {
@@ -84,7 +84,7 @@ private function addTaggedListeners(ContainerBuilder $container)
8484
$listenerRefs = [];
8585

8686
foreach ($taggedListeners as $taggedListener) {
87-
list($id, $tag) = $taggedListener;
87+
[$id, $tag] = $taggedListener;
8888
if (!isset($tag['event'])) {
8989
throw new InvalidArgumentException(sprintf('Doctrine event listener "%s" must specify the "event" attribute.', $id));
9090
}

Form/DoctrineOrmTypeGuesser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function guessType(string $class, string $property)
4242
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\TextType', [], Guess::LOW_CONFIDENCE);
4343
}
4444

45-
list($metadata, $name) = $ret;
45+
[$metadata, $name] = $ret;
4646

4747
if ($metadata->hasAssociation($property)) {
4848
$multiple = $metadata->isCollectionValuedAssociation($property);

Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,8 @@ protected function createEntityManagerMock($repositoryMock)
114114
->method('hasField')
115115
->willReturn(true)
116116
;
117-
$reflParser = $this->getMockBuilder('Doctrine\Common\Reflection\StaticReflectionParser')
118-
->disableOriginalConstructor()
119-
->getMock()
120-
;
121-
$refl = $this->getMockBuilder('Doctrine\Common\Reflection\StaticReflectionProperty')
122-
->setConstructorArgs([$reflParser, 'property-name'])
123-
->setMethods(['getValue'])
124-
->getMock()
125-
;
117+
$refl = $this->createMock(\ReflectionProperty::class);
126118
$refl
127-
->expects($this->any())
128119
->method('getValue')
129120
->willReturn(true)
130121
;

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
"doctrine/collections": "~1.0",
4949
"doctrine/data-fixtures": "^1.1",
5050
"doctrine/dbal": "^2.10|^3.0",
51-
"doctrine/orm": "^2.6.3",
52-
"doctrine/reflection": "~1.0"
51+
"doctrine/orm": "^2.6.3"
5352
},
5453
"conflict": {
5554
"doctrine/dbal": "<2.10",

0 commit comments

Comments
 (0)