magento2-phpstorm-plugin
magento2-phpstorm-plugin copied to clipboard
Generate a CLI command doesn't escape single quotes in description
Describe the bug (*)
When generating a CLI command if you type a description that contains single quotes, they don't get escaped and the code generated is invalid
To Reproduce (*)
Steps to reproduce the behavior:
- Generate a new CLI command
- Type in the description field like
Test command's bug - Generate the class
- See it's invalid
Expected behavior (*)
The quote is escaped
Screenshots

Please complete the following information: (*)
- OS: Windows 11
- PhpStorm/Intellij version:
IntelliJ IDEA 2022.3.1 (Ultimate Edition)
Build #IU-223.8214.52, built on December 20, 2022
Runtime version: 17.0.5+1-b653.23 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 24
- Plugin Version: [e.g. 1.0.0]
5.0.0
Additional context
Add any other context about the problem here.