Shortcode Fatal Error when updating Shortcode module to shortcode 8.x-1.0-rc2

Hi there,

I got this fatal error when I upgraded the Shortcode Module to shortcode 8.x-1.0-rc2:

[21-Mar-2019 06:21:48 UTC] PHP Fatal error: Declaration of Drupal\dexp_shortcodes\Plugin\Shortcode\DexpShortcodeTitle::process() must be compatible with Drupal\shortcode\Plugin\ShortcodeInterface::process(array $attributes, $text, $langcode = Drupal\Core\Language\Language::LANGCODE_NOT_SPECIFIED) in /Applications/MAMP/htdocs/sea/modules/drupalexp/modules/dexp_shortcodes/src/Plugin/Shortcode/DexpShortcodeTitle.php on line 21

From what I can see, this is due to a change to the Shortcode module, namely this fix that is part of the release candidate:

https://www.drupal.org/files/issues/2018-06-08/fix-compatibility-of-the-shortcode-example-2978302-2.patch

Basically, you need to change the public function for the plugins to :

** public function process(array $attributes, $text, $langcode = Language::LANGCODE_NOT_SPECIFIED) {**

That is add in "array" before $attributes.

Can you update the dexp_shortcode plugins to cater for this ?

Thank you!

авпавпва

Your blog motivates me to be better. Solar