Skip to content

Commit c80cb58

Browse files
authored
Fix return type deprecation since Symfony 7.x
Method "Symfony\Component\Serializer\Encoder\DecoderInterface::decode()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Ang3\Component\Serializer\Encoder\ExcelEncoder" now to avoid errors or add an explicit @return annotation to suppress this message.
1 parent a72f3b8 commit c80cb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExcelEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function supportsDecoding($format): bool
227227
* @throws RuntimeException When data reading failed
228228
* @throws PhpSpreadsheetException On data failure
229229
*/
230-
public function decode($data, $format, array $context = [])
230+
public function decode($data, $format, array $context = []): mixed
231231
{
232232
if (!\is_scalar($data)) {
233233
throw new NotEncodableValueException(sprintf('Expected data of type scalar, %s given', \gettype($data)));

0 commit comments

Comments
 (0)