magento / magento/magento2-phpstorm-plugin
Generate a CLI command doesn't escape single quotes in description
- Dominant language
- Java
- Stars
- 463
- Forks
- 98
- Avg merge
- 1h 6m
- Merged PRs (30d)
- 3
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:
1. Generate a new CLI command
2. Type in the description field like `Test command's bug`
3. Generate the class
4. 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.
Contributor guide
Assessment
This issue has not been assessed yet.