minor #38870 [DoctrineBridge] Remove dependency on doctrine/reflection (greg0ire)
This PR was merged into the 4.4 branch.
Discussion
----------
[DoctrineBridge] Remove dependency on doctrine/reflection
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | kinda
| New feature? | no
| Deprecations? | no
| Tickets | n/a
| License | MIT
| Doc PR | n/a
That package is being phased out, and there are good chances that the
classes involved at runtime are completely different from the classes
involved in the test changed in that commit. That test was the only
piece of code I could find still referencing the
`Doctrine\Common\Reflection` namespace.
Commits
-------
ed80bcc82c
Remove dependency on doctrine/reflection
This commit is contained in:
commit
19585f2f4c
@ -107,7 +107,6 @@
|
||||
"doctrine/data-fixtures": "^1.1",
|
||||
"doctrine/dbal": "~2.4|^3.0",
|
||||
"doctrine/orm": "~2.4,>=2.4.5",
|
||||
"doctrine/reflection": "~1.0",
|
||||
"doctrine/doctrine-bundle": "^1.5|^2.0",
|
||||
"guzzlehttp/promises": "^1.3.1",
|
||||
"masterminds/html5": "^2.6",
|
||||
|
@ -114,17 +114,8 @@ class UniqueEntityValidatorTest extends ConstraintValidatorTestCase
|
||||
->method('hasField')
|
||||
->willReturn(true)
|
||||
;
|
||||
$reflParser = $this->getMockBuilder('Doctrine\Common\Reflection\StaticReflectionParser')
|
||||
->disableOriginalConstructor()
|
||||
->getMock()
|
||||
;
|
||||
$refl = $this->getMockBuilder('Doctrine\Common\Reflection\StaticReflectionProperty')
|
||||
->setConstructorArgs([$reflParser, 'property-name'])
|
||||
->setMethods(['getValue'])
|
||||
->getMock()
|
||||
;
|
||||
$refl = $this->createStub(\ReflectionProperty::class);
|
||||
$refl
|
||||
->expects($this->any())
|
||||
->method('getValue')
|
||||
->willReturn(true)
|
||||
;
|
||||
|
@ -44,8 +44,7 @@
|
||||
"doctrine/collections": "~1.0",
|
||||
"doctrine/data-fixtures": "^1.1",
|
||||
"doctrine/dbal": "~2.4|^3.0",
|
||||
"doctrine/orm": "^2.6.3",
|
||||
"doctrine/reflection": "~1.0"
|
||||
"doctrine/orm": "^2.6.3"
|
||||
},
|
||||
"conflict": {
|
||||
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
|
||||
|
Reference in New Issue
Block a user