Skip to content
Snippets Groups Projects
Commit ec574c86 authored by Claudiu Cristea's avatar Claudiu Cristea Committed by James R Glasgow
Browse files

Follow interface signature

parent 8fc22917
No related branches found
No related tags found
1 merge request!38Issue #3272884 by Aerzas: html_entity_decode(): Passing null to parameter #1...
......@@ -85,7 +85,7 @@ class CsvEncoder implements EncoderInterface, DecoderInterface {
*
* Uses HTML-safe strings, with several characters escaped.
*/
public function encode($data, string $format, array $context = []):string {
public function encode(mixed $data, string $format, array $context = []): string {
switch (gettype($data)) {
case "array":
break;
......@@ -260,7 +260,7 @@ class CsvEncoder implements EncoderInterface, DecoderInterface {
* @throws \League\Csv\Exception
* @throws \League\Csv\Exception
*/
public function decode($data, string $format, array $context = []) {
public function decode(string $data, string $format, array $context = []): mixed {
$csv = Reader::createFromString($data);
$csv->setDelimiter($this->delimiter);
$csv->setEnclosure($this->enclosure);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment