diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-02-07 20:38:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 20:38:19 +0100 |
commit | dcfc96f0cce0a4bc50c4c989464fbbb275ec16b0 (patch) | |
tree | f2b2738f69620cff9e8ef561b84f1f52fdda9b06 /lib/public | |
parent | 6077003899de70c6a755b73b370f45766142090c (diff) | |
parent | 3b2d01fe8b302f54c6d69101f27bd4d67e40abbb (diff) | |
download | nextcloud-server-dcfc96f0cce0a4bc50c4c989464fbbb275ec16b0.tar.gz nextcloud-server-dcfc96f0cce0a4bc50c4c989464fbbb275ec16b0.zip |
Merge pull request #36417 from nextcloud/fix/psr-container
Make the container fully fulfill PSR container interface
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/AppFramework/QueryException.php | 2 | ||||
-rw-r--r-- | lib/public/IContainer.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/AppFramework/QueryException.php b/lib/public/AppFramework/QueryException.php index 3b73c92e7be..c525ddd8033 100644 --- a/lib/public/AppFramework/QueryException.php +++ b/lib/public/AppFramework/QueryException.php @@ -32,7 +32,7 @@ use Psr\Container\ContainerExceptionInterface; /** * Class QueryException * - * The class extends `NotFoundExceptionInterface` since 20.0.0 + * The class extends `ContainerExceptionInterface` since 20.0.0 * * @since 8.1.0 * @deprecated 20.0.0 catch \Psr\Container\ContainerExceptionInterface diff --git a/lib/public/IContainer.php b/lib/public/IContainer.php index 86595e1e8f7..b27ddabb8e2 100644 --- a/lib/public/IContainer.php +++ b/lib/public/IContainer.php @@ -33,6 +33,7 @@ use Closure; use OCP\AppFramework\QueryException; use Psr\Container\ContainerExceptionInterface; use Psr\Container\ContainerInterface; +use Psr\Container\NotFoundExceptionInterface; /** * Class IContainer @@ -70,6 +71,7 @@ interface IContainer extends ContainerInterface { * @return mixed * @psalm-return ($name is class-string ? T : mixed) * @throws ContainerExceptionInterface if the query could not be resolved + * @throws NotFoundExceptionInterface if the name could not be found within the container * @throws QueryException if the query could not be resolved * @since 6.0.0 * @deprecated 20.0.0 use \Psr\Container\ContainerInterface::get |