Skip to content

Commit 1dd21ed

Browse files
committed
Revert un-namespaced imports
1 parent 693b321 commit 1dd21ed

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

features/bootstrap/DoctrineContext.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ public function thereAreDummyObjectsWithDummyDate(int $nb)
594594
$descriptions = ['Smart dummy.', 'Not so smart dummy.'];
595595

596596
for ($i = 1; $i <= $nb; ++$i) {
597-
$date = new DateTime(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
597+
$date = new \DateTime(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
598598

599599
$dummy = $this->buildDummy();
600600
$dummy->setName('Dummy #'.$i);
@@ -625,11 +625,11 @@ public function thereAreDummyObjectsWithDummyDateAndDummyBoolean(int $nb, string
625625
$bool = false;
626626
} else {
627627
$expected = ['true', 'false', '1', '0'];
628-
throw new InvalidArgumentException(sprintf('Invalid boolean value for "%s" property, expected one of ( "%s" )', $bool, implode('" | "', $expected)));
628+
throw new \InvalidArgumentException(sprintf('Invalid boolean value for "%s" property, expected one of ( "%s" )', $bool, implode('" | "', $expected)));
629629
}
630630

631631
for ($i = 1; $i <= $nb; ++$i) {
632-
$date = new DateTime(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
632+
$date = new \DateTime(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
633633

634634
$dummy = $this->buildDummy();
635635
$dummy->setName('Dummy #'.$i);
@@ -654,7 +654,7 @@ public function thereAreDummyObjectsWithDummyDateAndDummyBoolean(int $nb, string
654654
public function thereAreDummyObjectsWithDummyDateAndRelatedDummy(int $nb)
655655
{
656656
for ($i = 1; $i <= $nb; ++$i) {
657-
$date = new DateTime(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
657+
$date = new \DateTime(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
658658

659659
$relatedDummy = $this->buildRelatedDummy();
660660
$relatedDummy->setName('RelatedDummy #'.$i);
@@ -682,7 +682,7 @@ public function thereAreDummyObjectsWithDummyDateAndRelatedDummy(int $nb)
682682
public function thereAreDummyObjectsWithDummyDateAndEmbeddedDummy(int $nb)
683683
{
684684
for ($i = 1; $i <= $nb; ++$i) {
685-
$date = new DateTime(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
685+
$date = new \DateTime(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
686686

687687
$embeddableDummy = $this->buildEmbeddableDummy();
688688
$embeddableDummy->setDummyName('Embeddable #'.$i);
@@ -709,7 +709,7 @@ public function thereAreconvertedDateObjectsWith(int $nb)
709709
{
710710
for ($i = 1; $i <= $nb; ++$i) {
711711
$convertedDate = $this->buildConvertedDate();
712-
$convertedDate->nameConverted = new DateTime(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
712+
$convertedDate->nameConverted = new \DateTime(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
713713

714714
$this->manager->persist($convertedDate);
715715
}
@@ -795,7 +795,7 @@ public function thereAreDummyObjectsWithDummyBoolean(int $nb, string $bool)
795795
$bool = false;
796796
} else {
797797
$expected = ['true', 'false', '1', '0'];
798-
throw new InvalidArgumentException(sprintf('Invalid boolean value for "%s" property, expected one of ( "%s" )', $bool, implode('" | "', $expected)));
798+
throw new \InvalidArgumentException(sprintf('Invalid boolean value for "%s" property, expected one of ( "%s" )', $bool, implode('" | "', $expected)));
799799
}
800800
$descriptions = ['Smart dummy.', 'Not so smart dummy.'];
801801

@@ -823,7 +823,7 @@ public function thereAreDummyObjectsWithEmbeddedDummyBoolean(int $nb, string $bo
823823
$bool = false;
824824
} else {
825825
$expected = ['true', 'false', '1', '0'];
826-
throw new InvalidArgumentException(sprintf('Invalid boolean value for "%s" property, expected one of ( "%s" )', $bool, implode('" | "', $expected)));
826+
throw new \InvalidArgumentException(sprintf('Invalid boolean value for "%s" property, expected one of ( "%s" )', $bool, implode('" | "', $expected)));
827827
}
828828

829829
for ($i = 1; $i <= $nb; ++$i) {
@@ -850,7 +850,7 @@ public function thereAreDummyObjectsWithRelationEmbeddedDummyBoolean(int $nb, st
850850
$bool = false;
851851
} else {
852852
$expected = ['true', 'false', '1', '0'];
853-
throw new InvalidArgumentException(sprintf('Invalid boolean value for "%s" property, expected one of ( "%s" )', $bool, implode('" | "', $expected)));
853+
throw new \InvalidArgumentException(sprintf('Invalid boolean value for "%s" property, expected one of ( "%s" )', $bool, implode('" | "', $expected)));
854854
}
855855

856856
for ($i = 1; $i <= $nb; ++$i) {
@@ -980,7 +980,7 @@ public function thereIsAFooEntityWithRelatedBars()
980980
$foo = $this->buildDummyCar();
981981
$foo->setName('mustli');
982982
$foo->setCanSell(true);
983-
$foo->setAvailableAt(new DateTime());
983+
$foo->setAvailableAt(new \DateTime());
984984
$this->manager->persist($foo);
985985

986986
$bar1 = $this->buildDummyCarColor();
@@ -1146,7 +1146,7 @@ public function createPeopleWithPets()
11461146
public function thereAreDummyDateObjectsWithDummyDate(int $nb)
11471147
{
11481148
for ($i = 1; $i <= $nb; ++$i) {
1149-
$date = new DateTime(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
1149+
$date = new \DateTime(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
11501150

11511151
$dummy = $this->buildDummyDate();
11521152
$dummy->dummyDate = $date;
@@ -1164,7 +1164,7 @@ public function thereAreDummyDateObjectsWithDummyDate(int $nb)
11641164
public function thereAreDummyDateObjectsWithNullableDateIncludeNullAfter(int $nb)
11651165
{
11661166
for ($i = 1; $i <= $nb; ++$i) {
1167-
$date = new DateTime(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
1167+
$date = new \DateTime(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
11681168

11691169
$dummy = $this->buildDummyDate();
11701170
$dummy->dummyDate = $date;
@@ -1183,7 +1183,7 @@ public function thereAreDummyDateObjectsWithNullableDateIncludeNullAfter(int $nb
11831183
public function thereAreDummyDateObjectsWithNullableDateIncludeNullBefore(int $nb)
11841184
{
11851185
for ($i = 1; $i <= $nb; ++$i) {
1186-
$date = new DateTime(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
1186+
$date = new \DateTime(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
11871187

11881188
$dummy = $this->buildDummyDate();
11891189
$dummy->dummyDate = $date;
@@ -1202,7 +1202,7 @@ public function thereAreDummyDateObjectsWithNullableDateIncludeNullBefore(int $n
12021202
public function thereAreDummyDateObjectsWithNullableDateIncludeNullBeforeAndAfter(int $nb)
12031203
{
12041204
for ($i = 1; $i <= $nb; ++$i) {
1205-
$date = new DateTime(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
1205+
$date = new \DateTime(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
12061206

12071207
$dummy = $this->buildDummyDate();
12081208
$dummy->dummyDate = $date;
@@ -1220,7 +1220,7 @@ public function thereAreDummyDateObjectsWithNullableDateIncludeNullBeforeAndAfte
12201220
public function thereAreDummyImmutableDateObjectsWithDummyDate(int $nb)
12211221
{
12221222
for ($i = 1; $i <= $nb; ++$i) {
1223-
$date = new DateTimeImmutable(sprintf('2015-04-%d', $i), new DateTimeZone('UTC'));
1223+
$date = new \DateTimeImmutable(sprintf('2015-04-%d', $i), new \DateTimeZone('UTC'));
12241224
$dummy = new DummyImmutableDate();
12251225
$dummy->dummyDate = $date;
12261226

0 commit comments

Comments
 (0)