You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I tried to dump a configuration file to kick-off my import project. But it does not work with the current version:
I could make it work by replacing
JsonSerializationVisitor
withJsonSerializationVisitorFactory
, as just not passing the strategy object resulted in another error later in that method.The text was updated successfully, but these errors were encountered: