-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I tried to dump a configuration file to kick-off my import project. But it does not work with the current version:
$ vendor/bin/import-simple --version
Pacemaker - Community Console Tool 4.1.2
$ vendor/bin/import-simple import:create:configuration-file --dest=.temp/techdivision-import.json
Fatal error: Uncaught TypeError: Argument 1 passed to JMS\Serializer\JsonSerializationVisitor::__construct() must be of the type int, object given, called in [...]/vendor/techdivision/import-cli/src/Command/ImportCreateConfigurationFileCommand.php on line 99 and defined in [...]/vendor/jms/serializer/src/JsonSerializationVisitor.php:29
Stack trace:
#0 [...]/vendor/techdivision/import-cli/src/Command/ImportCreateConfigurationFileCommand.php(99): JMS\Serializer\JsonSerializationVisitor->__construct()
#1 [...]/vendor/techdivision/import-cli/src/Command/AbstractSimpleImportCommand.php(92): TechDivision\Import\Cli\Command\ImportCreateConfigurationFileCommand->executeSimpleCommand()
#2 [...]/vendor/symfony/console/Command/Command.php in [...]/vendor/jms/serializer/src/JsonSerializationVisitor.php on line 29
$ composer info jms/serializer
name : jms/serializer
[...]
versions : * 3.17.1
[...]
I could make it work by replacing JsonSerializationVisitor with JsonSerializationVisitorFactory, as just not passing the strategy object resulted in another error later in that method.
Metadata
Metadata
Assignees
Labels
No labels