- Issue created by @kruser
- πΊπΈUnited States pianomansam
I encountered this, too. I'm on PHP 7.4. This is the line in question:
protected function getColorFormat(?string $format = NULL): array|MarkupInterface {
It looks like this is an issue with PHP 7 backward compatibility.
- πΊπΈUnited States pianomansam
Confirmed. Marking this as a duplicate of π Drupal\color_field\Plugin\Field\FieldFormatter\ColorFieldFormatterSwatch::getShape(): Return value must be of type array|string, Drupal\Core\StringTranslation\TranslatableMarkup Needs work
- Status changed to Closed: duplicate
almost 2 years ago 7:19pm 27 January 2023