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:
parent
6ad27c13e0
commit
1693b5b0d5
1 changed files with 2 additions and 2 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue