Skip to content

Commit 09680fc

Browse files
committed
Fix errors in rebasing
1 parent ca8f6f7 commit 09680fc

File tree

4 files changed

+2
-30
lines changed

4 files changed

+2
-30
lines changed

features/bootstrap/DoctrineContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ public function thePasswordForUserShouldBeHashed(string $password, string $user)
10811081
{
10821082
$user = $this->doctrine->getRepository($this->isOrm() ? User::class : UserDocument::class)->find($user);
10831083
if (!$this->passwordEncoder->isPasswordValid($user, $password)) {
1084-
throw new Exception('User password mismatch');
1084+
throw new \Exception('User password mismatch');
10851085
}
10861086
}
10871087

src/Serializer/AbstractItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function __construct(PropertyNameCollectionFactoryInterface $propertyName
9292
*/
9393
public function supportsNormalization($data, $format = null)
9494
{
95-
if (!\is_object($data) || $data instanceof \Traversable) {
95+
if (!\is_object($data)) {
9696
return false;
9797
}
9898

tests/Fixtures/TestBundle/Document/DummyDtoOutputFallbackToSameClass.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,21 @@ class DummyDtoOutputFallbackToSameClass
3030
/**
3131
* @var int The id
3232
*
33-
<<<<<<< HEAD
34-
* @ORM\Column(type="integer")
35-
* @ORM\Id
36-
* @ORM\GeneratedValue(strategy="AUTO")
37-
=======
3833
* @ODM\Id(strategy="INCREMENT", type="integer", nullable=true)
39-
>>>>>>> Add ODM docs for tests
4034
*/
4135
private $id;
4236

4337
/**
4438
* @var string
4539
*
46-
<<<<<<< HEAD
47-
* @ORM\Column
48-
=======
4940
* @ODM\Field
50-
>>>>>>> Add ODM docs for tests
5141
*/
5242
public $lorem;
5343

5444
/**
5545
* @var string
5646
*
57-
<<<<<<< HEAD
58-
* @ORM\Column
59-
=======
6047
* @ODM\Field
61-
>>>>>>> Add ODM docs for tests
6248
*/
6349
public $ipsum;
6450

tests/Fixtures/TestBundle/Document/DummyDtoOutputSameClass.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,21 @@ class DummyDtoOutputSameClass
2929
/**
3030
* @var int The id
3131
*
32-
<<<<<<< HEAD
33-
* @ORM\Column(type="integer")
34-
* @ORM\Id
35-
* @ORM\GeneratedValue(strategy="AUTO")
36-
=======
3732
* @ODM\Id(strategy="INCREMENT", type="integer", nullable=true)
38-
>>>>>>> Add ODM docs for tests
3933
*/
4034
private $id;
4135

4236
/**
4337
* @var string
4438
*
45-
<<<<<<< HEAD
46-
* @ORM\Column
47-
=======
4839
* @ODM\Field
49-
>>>>>>> Add ODM docs for tests
5040
*/
5141
public $lorem;
5242

5343
/**
5444
* @var string
5545
*
56-
<<<<<<< HEAD
57-
* @ORM\Column
58-
=======
5946
* @ODM\Field
60-
>>>>>>> Add ODM docs for tests
6147
*/
6248
public $ipsum;
6349

0 commit comments

Comments
 (0)