Merge branch '4.0'
* 4.0: [PropertyInfo] Fix compat with recent phpdocumentor/type-resolver fix merge
This commit is contained in:
commit
f601142ccf
@ -70,7 +70,7 @@ abstract class FileLoader extends Loader
|
|||||||
* @throws FileLoaderImportCircularReferenceException
|
* @throws FileLoaderImportCircularReferenceException
|
||||||
* @throws FileLocatorFileNotFoundException
|
* @throws FileLocatorFileNotFoundException
|
||||||
*/
|
*/
|
||||||
public function import($resource, $type = null, bool $ignoreErrors = false, $sourceResource = null)
|
public function import($resource, $type = null, $ignoreErrors = false, $sourceResource = null)
|
||||||
{
|
{
|
||||||
if (is_string($resource) && strlen($resource) !== $i = strcspn($resource, '*?{[')) {
|
if (is_string($resource) && strlen($resource) !== $i = strcspn($resource, '*?{[')) {
|
||||||
$ret = array();
|
$ret = array();
|
||||||
|
@ -188,7 +188,7 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty));
|
return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty->getDeclaringClass()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getDocBlockFromMethod(string $class, string $ucFirstProperty, int $type): ?array
|
private function getDocBlockFromMethod(string $class, string $ucFirstProperty, int $type): ?array
|
||||||
|
@ -113,7 +113,7 @@ class RedirectableUrlMatcherTest extends UrlMatcherTest
|
|||||||
$coll = new RouteCollection();
|
$coll = new RouteCollection();
|
||||||
$coll->add('foo', new Route('/foo', array(), array(), array(), '', array('https')));
|
$coll->add('foo', new Route('/foo', array(), array(), array(), '', array('https')));
|
||||||
$matcher = $this->getUrlMatcher($coll, new RequestContext());
|
$matcher = $this->getUrlMatcher($coll, new RequestContext());
|
||||||
$matcher->expects($this->once())->method('redirect')->with('/foo', 'foo', 'https')->willReturn(array('_route' => 'foo'));
|
$matcher->expects($this->once())->method('redirect')->with('/foo', 'foo', 'https')->willReturn(array());
|
||||||
$this->assertSame(array('_route' => 'foo'), $matcher->match('/foo'));
|
$this->assertSame(array('_route' => 'foo'), $matcher->match('/foo'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user