3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Fix: Return type mixed of method Drupal\farm_kml\Encoder\Kml::encode() is not covariant with return type string of method Symfony\Component\Serializer\Encoder\EncoderInterface::encode().

This commit is contained in:
Michael Stenta 2023-10-06 09:11:27 -04:00
parent 6ad27c13e0
commit 1693b5b0d5

View file

@ -26,7 +26,7 @@ class Kml extends XmlEncoder {
/**
* {@inheritdoc}
*/
public function encode($data, $format, array $context = []) {
public function encode($data, $format, array $context = []): string {
// Build XML document to encode.
$xml = [
@ -51,7 +51,7 @@ class Kml extends XmlEncoder {
/**
* {@inheritdoc}
*/
public function decode($data, $format, array $context = []) {
public function decode($data, $format, array $context = []): mixed {
// Start an array of decoded placemark data.
$decoded_placemarks = [];