Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use import:create:configuration-file #269

Open
mk-mxp opened this issue Jul 31, 2022 · 0 comments
Open

Can't use import:create:configuration-file #269

mk-mxp opened this issue Jul 31, 2022 · 0 comments

Comments

@mk-mxp
Copy link

mk-mxp commented Jul 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Pacemaker Community
  
Awaiting triage
Development

No branches or pull requests

1 participant