Skip to content

Commit 9116af7

Browse files
committed
Fix case mismatch for simplexml class
1 parent ebfb390 commit 9116af7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use DOMDocument;
1212
use InvalidArgumentException;
1313
use LibXMLError;
14-
use SimpleXmlElement;
14+
use SimpleXMLElement;
1515
use function array_keys;
1616
use function array_map;
1717
use function constant;
@@ -76,7 +76,7 @@ public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENS
7676
public function loadMetadataForClass($className, \Doctrine\Common\Persistence\Mapping\ClassMetadata $class)
7777
{
7878
/** @var ClassMetadata $class */
79-
/** @var \SimpleXMLElement $xmlRoot */
79+
/** @var SimpleXMLElement $xmlRoot */
8080
$xmlRoot = $this->getElement($className);
8181
if (! $xmlRoot) {
8282
return;
@@ -302,7 +302,7 @@ private function addFieldMapping(ClassMetadata $class, array $mapping) : void
302302
$class->addIndex($keys, $options);
303303
}
304304

305-
private function addEmbedMapping(ClassMetadata $class, SimpleXmlElement $embed, string $type) : void
305+
private function addEmbedMapping(ClassMetadata $class, SimpleXMLElement $embed, string $type) : void
306306
{
307307
$attributes = $embed->attributes();
308308
$defaultStrategy = $type === 'one' ? ClassMetadata::STORAGE_STRATEGY_SET : CollectionHelper::DEFAULT_STRATEGY;
@@ -409,7 +409,7 @@ private function addReferenceMapping(ClassMetadata $class, $reference, string $t
409409
$this->addFieldMapping($class, $mapping);
410410
}
411411

412-
private function addIndex(ClassMetadata $class, SimpleXmlElement $xmlIndex) : void
412+
private function addIndex(ClassMetadata $class, SimpleXMLElement $xmlIndex) : void
413413
{
414414
$attributes = $xmlIndex->attributes();
415415

@@ -479,7 +479,7 @@ private function addIndex(ClassMetadata $class, SimpleXmlElement $xmlIndex) : vo
479479
$class->addIndex($keys, $options);
480480
}
481481

482-
private function getPartialFilterExpression(\SimpleXMLElement $fields) : array
482+
private function getPartialFilterExpression(SimpleXMLElement $fields) : array
483483
{
484484
$partialFilterExpression = [];
485485
foreach ($fields as $field) {
@@ -514,7 +514,7 @@ private function getPartialFilterExpression(\SimpleXMLElement $fields) : array
514514
return $partialFilterExpression;
515515
}
516516

517-
private function setShardKey(ClassMetadata $class, SimpleXmlElement $xmlShardkey) : void
517+
private function setShardKey(ClassMetadata $class, SimpleXMLElement $xmlShardkey) : void
518518
{
519519
$attributes = $xmlShardkey->attributes();
520520

@@ -554,7 +554,7 @@ private function setShardKey(ClassMetadata $class, SimpleXmlElement $xmlShardkey
554554
*
555555
* list($readPreference, $tags) = $this->transformReadPreference($xml->{read-preference});
556556
*/
557-
private function transformReadPreference(\SimpleXMLElement $xmlReadPreference) : array
557+
private function transformReadPreference(SimpleXMLElement $xmlReadPreference) : array
558558
{
559559
$tags = null;
560560
if (isset($xmlReadPreference->{'tag-set'})) {
@@ -623,7 +623,7 @@ private function formatErrors(array $xmlErrors) : string
623623
}, $xmlErrors));
624624
}
625625

626-
private function addGridFSMappings(ClassMetadata $class, \SimpleXMLElement $xmlRoot) : void
626+
private function addGridFSMappings(ClassMetadata $class, SimpleXMLElement $xmlRoot) : void
627627
{
628628
if (! $class->isFile) {
629629
return;

0 commit comments

Comments
 (0)