Skip to content
Snippets Groups Projects
Commit 55425063 authored by Thom Heemstra's avatar Thom Heemstra
Browse files

Issue #3367244 by idebr: Restore compatibility with Drupal 9

parent 3b1e0e04
No related branches found
No related tags found
1 merge request!9Issue #3367244 by idebr: Restore compatibility with Drupal 9
......@@ -41,7 +41,7 @@ class Docx implements EncoderInterface {
*
* @throws \Drupal\Component\Serialization\Exception\InvalidDataTypeException
*/
public function encode(mixed $data, string $format, array $context = []): string {
public function encode(mixed $data, $format, array $context = []): string {
switch (gettype($data)) {
case 'array':
// Nothing to do.
......@@ -103,7 +103,7 @@ class Docx implements EncoderInterface {
/**
* {@inheritdoc}
*/
public function supportsEncoding(string $format): bool {
public function supportsEncoding($format): bool {
return $format === static::$format;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment