Skip to content

Commit c446600

Browse files
authored
Add missing dependency and fix typehints (#781)
1 parent 91880d8 commit c446600

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Exception/KeyProviderRequirementsException.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,20 @@
2020

2121
namespace Drupal\apigee_edge\Exception;
2222

23+
use Drupal\Core\StringTranslation\StringTranslationTrait;
2324
use Drupal\Core\StringTranslation\TranslatableMarkup;
2425

2526
/**
2627
* Defines an exception for Apigee Edge key provider problems.
2728
*/
2829
class KeyProviderRequirementsException extends RuntimeException {
2930

31+
use StringTranslationTrait;
32+
3033
/**
3134
* The TranslatableMarkup object containing a message to render on the UI.
3235
*
33-
* @var \Drupal\Core\StringTranslation\TranslatableMarkup
36+
* @var \Drupal\Core\StringTranslation\TranslatableMarkup|null
3437
*/
3538
protected $translatableMarkupMessage;
3639

@@ -39,7 +42,7 @@ class KeyProviderRequirementsException extends RuntimeException {
3942
*
4043
* @param string $message
4144
* The Exception message.
42-
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $translatable_markup_message
45+
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $translatable_markup_message
4346
* The translatable markup object of the exception to display on the pages
4447
* where the exception is caught.
4548
* @param int|null $code

0 commit comments

Comments
 (0)