Fix typehints in \Drupal\Core\Utility\Error::decodeException()

Created on 28 April 2023, over 1 year ago
Updated 5 July 2023, over 1 year ago

Problem/Motivation

Follow up from 📌 Deprecate watchdog_exception Fixed in \Drupal\Core\Utility\Error::decodeException() the docblock says @param \Exception|\Throwable $exception. As \Exception implements \Throwable, this is not necessary.

We should add a typehint while we are here.

Steps to reproduce

Proposed resolution

  • Change @param \Exception|\Throwable $exception to just Change @param \Throwable $exception.
  • Add a typehint to the method.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Base 

Last updated about 9 hours ago

Created by

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024