Hans Mackowiak
package symfony/serializer
is installed
require 'vendor/autoload.php';
use Symfony\Component\Serializer\Normalizer\NormalizableInterface;
abstract class Main implements NormalizableInterface
{
};
causes this crash:
PHP Fatal error: Uncaught Psy\Exception\FatalErrorException: PHP Fatal error: Interface 'NormalizableInterface' not found in eval()'d code on line 7 in phar:///var/psysh.phar/src/CodeCleaner/ValidClassNamePass.php:7
Stack trace:
#0 phar:///var/psysh.phar/src/CodeCleaner/ValidClassNamePass.php(126): Psy\CodeCleaner\ValidClassNamePass->createError()
#1 phar:///var/psysh.phar/src/CodeCleaner/ValidClassNamePass.php(57): Psy\CodeCleaner\ValidClassNamePass->ensureInterfacesExist()
Hans Mackowiak
Item authorsomehow implements NormalizableInterface
causes a crash
Bosun Egberinde
Hey @Hans Mackowiak, Thanks for reporting this. I have confirmed that this is an issue and started looking into resolving it.
I will update here once I have more information.
Bosun Egberinde
Hi Hans,
My investigation has since revelead this is an issue with the underlying psy/psysh
package that the Interactive Notebook uses. However, the cause itself is not yet clear.
A suggestion will be to use the fully qualified namespace like this:
require 'vendor/autoload.php';
abstract class Main implements Symfony\Component\Serializer\Normalizer\NormalizableInterface
{
};
But I know this is not satisfactory even for me. But I will keep digging and update you once this is resolved.
implement external Interface causes crash
-
Bosun Egberinde moved item to board In progress
4 months ago -
Bosun Egberinde moved item to board Under review
4 months ago -
Hans Mackowiak moved item to project Bugs
4 months ago -
Hans Mackowiak created the item
4 months ago