Verified Commit ae3bd364 authored by Jess's avatar Jess
Browse files

Issue #3324838 by Spokje: Fix PHPStan L2 error "PHPDoc tag @throws with type...

Issue #3324838 by Spokje: Fix PHPStan L2 error "PHPDoc tag @throws with type Foo is not subtype of Throwable"

(cherry picked from commit 97ffc69f)
parent ced9990e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ protected static function schemaDefinition() {
  /**
   * Implements Drupal\Core\Config\StorageInterface::delete().
   *
   * @throws PDOException
   * @throws \PDOException
   *
   * @todo Ignore replica targets for data manipulation operations.
   */
@@ -232,7 +232,7 @@ public function delete($name) {
  /**
   * Implements Drupal\Core\Config\StorageInterface::rename().
   *
   * @throws PDOException
   * @throws \PDOException
   */
  public function rename($name, $new_name) {
    // @todo Remove the 'return' option in Drupal 11.
@@ -255,7 +255,7 @@ public function encode($data) {
  /**
   * Implements Drupal\Core\Config\StorageInterface::decode().
   *
   * @throws ErrorException
   * @throws \ErrorException
   *   The unserialize() call will trigger E_NOTICE if the string cannot
   *   be unserialized.
   */
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ public function themeExists($theme);
   * @return \Drupal\Core\Extension\Extension
   *   An extension object.
   *
   * @throws \Drupal\Core\Extension\Extension\UnknownExtensionException
   * @throws \Drupal\Core\Extension\Exception\UnknownExtensionException
   *   Thrown when the requested theme does not exist.
   */
  public function getTheme($name);
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ interface FilterInterface {
   * @return \Symfony\Component\Routing\RouteCollection
   *   A non-empty RouteCollection of matched routes
   *
   * @throws ResourceNotFoundException
   * @throws \Symfony\Component\Routing\Exception\ResourceNotFoundException
   *   If none of the routes in $collection matches $request. This is a
   *   performance optimization to not continue the match process when a match
   *   will no longer be possible.
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ interface TranslatorInterface {
   * @return string
   *   The translated string.
   *
   * @throws InvalidArgumentException
   * @throws \InvalidArgumentException
   *   If the locale contains invalid characters.
   */
  public function trans($id, array $parameters = [], $domain = NULL, $locale = NULL);
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE) {
  /**
   * {@inheritdoc}
   *
   * @throws \DeleteDefaultLanguageException
   * @throws \Drupal\language\Exception\DeleteDefaultLanguageException
   *   Exception thrown if we're trying to delete the default language entity.
   *   This is not allowed as a site must have a default language.
   */
Loading