- Issue created by @michelrrr
- π§πͺBelgium michelrrr
Proposal : do not use strict "string $text" in method signature but ?string $text and apply validation on null instead.
methods impacted : replacePlaceHolders and scan of PlaceholderResolver.php
since the upgrade of Typed Data API enhancements from 8.x-1.0-beta3 to 2.1.1
Error on save action :
TypeError : Drupal\typed_data\PlaceholderResolver::scan(): Argument #1 ($text) must be of type string, null given, called in /home/reseauidhr/production/www/modules/rules/src/Plugin/RulesDataProcessor/TokenProcessor.php on line 63 dans Drupal\typed_data\PlaceholderResolver->scan() (ligne 180 de /home/reseauidhr/production/www/modules/contrib/typed_data/src/PlaceholderResolver.php).
can reproduce on demand
Save a custom content type.
The content is actualy saved but the page show "The website encountered an unexpected error. Try again later"
Active
2.1
Miscellaneous
Proposal : do not use strict "string $text" in method signature but ?string $text and apply validation on null instead.
methods impacted : replacePlaceHolders and scan of PlaceholderResolver.php