Skip to content

Commit 5bc35c8

Browse files
authored
fix: Remove invalid semicolon from dummy object serialized string
unserialize() emits a E_WARNING if the input contains unconsumed bytes since PHP 8.3. The semicolon was not used before anyway.
1 parent b668a97 commit 5bc35c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Controller/EndpointDiscoveryController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ protected function getResultJson(): array
207207
*/
208208
protected function getDummyObject(string $className)
209209
{
210-
return unserialize('O:' . strlen($className) . ':"' . $className . '":0:{};');
210+
return unserialize('O:' . strlen($className) . ':"' . $className . '":0:{}');
211211
}
212212

213213
/**
@@ -251,4 +251,4 @@ protected function getCacheIdentifier(string $packageKey): string
251251
->__toString();
252252
return md5($packageKey . $uri);
253253
}
254-
}
254+
}

0 commit comments

Comments
 (0)