mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/17176] Update implementations to be compatible with Symfony 6.3
PHPBB3-17176
This commit is contained in:
@@ -33,7 +33,7 @@ class loader_resolver implements LoaderResolverInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function resolve($resource, $type = null)
|
||||
public function resolve($resource, $type = null): false|\Symfony\Component\Config\Loader\LoaderInterface
|
||||
{
|
||||
/** @var \Symfony\Component\Config\Loader\LoaderInterface $loader */
|
||||
foreach ($this->loaders as $loader)
|
||||
|
@@ -171,7 +171,7 @@ class router implements RouterInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getContext()
|
||||
public function getContext(): RequestContext
|
||||
{
|
||||
return $this->context;
|
||||
}
|
||||
@@ -179,7 +179,7 @@ class router implements RouterInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)
|
||||
public function generate(string $name, array $parameters = [], int $referenceType = self::ABSOLUTE_PATH): string
|
||||
{
|
||||
return $this->get_generator()->generate($name, $parameters, $referenceType);
|
||||
}
|
||||
@@ -187,7 +187,7 @@ class router implements RouterInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function match($pathinfo)
|
||||
public function match(string $pathinfo): array
|
||||
{
|
||||
return $this->get_matcher()->match($pathinfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user