8000 Merge branch '4.0' · symfony/symfony@f601142 · GitHub
[go: up one dir, main page]

Skip to content

Commit f601142

Browse files
Merge branch '4.0'
* 4.0: [PropertyInfo] Fix compat with recent phpdocumentor/type-resolver fix merge
2 parents 068b43a + aa964e1 commit f601142

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Component/Config/Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getLocator()
7070
* @throws FileLoaderImportCircularReferenceException
7171
* @throws FileLocatorFileNotFoundException
7272
*/
73-
public function import($resource, $type = null, bool $ignoreErrors = false, $sourceResource = null)
73+
public function import($resource, $type = null, $ignoreErrors = false, $sourceResource = null)
7474
{
7575
if (is_string($resource) && strlen($resource) !== $i = strcspn($resource, '*?{[')) {
7676
$ret = array();

src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private function getDocBlockFromProperty(string $class, string $property): ?DocB
188188
return null;
189189
}
190190

191-
return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty));
191+
return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty->getDeclaringClass()));
192192
}
193193

194194
private function getDocBlockFromMethod(string $class, string $ucFirstProperty, int $type): ?array

src/Symfony/Component/Routing/Tests/Matcher/RedirectableUrlMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function testSchemeRequirement()
113113
$coll = new RouteCollection();
114114
$coll-> 61B3 add('foo', new Route('/foo', array(), array(), array(), '', array('https')));
115115
$matcher = $this->getUrlMatcher($coll, new RequestContext());
116-
$matcher->expects($this->once())->method('redirect')->with('/foo', 'foo', 'https')->willReturn(array('_route' => 'foo'));
116+
$matcher->expects($this->once())->method('redirect')->with('/foo', 'foo', 'https')->willReturn(array());
117117
$this->assertSame(array('_route' => 'foo'), $matcher->match('/foo'));
118118
}
119119

0 commit comments

Comments
 (0)
0