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

Fix 'TypeError: FieldBaseOverrideCreateCommands::askFieldDescription(): Argument #1 ($default) must be of type ?string, TranslatableMarkup given' #5699

Merged

Conversation

DieterHolvoet
Copy link
Contributor

The default option argument of SymfonyStyle::ask() got a string typehint. For the Description option in the field:create command we were passing an instance of TranslatableMarkup, which causes a TypeError.

…): Argument drush-ops#1 ($default) must be of type ?string, TranslatableMarkup given'
@DieterHolvoet DieterHolvoet merged commit 0dce0a8 into drush-ops:12.x Jul 10, 2023
2 checks passed
@DieterHolvoet DieterHolvoet deleted the issue/typeerror-ask-bfoc branch July 10, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant