viperet / vscode-magento-wizard

Helps develop Magento 2 extensions using VSCode
36 stars 16 forks source link

Validate namespace and class names entered by the user #2

Closed viperet closed 5 years ago

viperet commented 5 years ago

Currently, it is possible to enter PHP reserved words in the vendor, extension or class name inputs, which results in incorrect PHP code generated by extension. Strict input validation should be added using list of reserved + soft reserved words from PHP 7.2 (https://www.php.net/manual/en/reserved.other-reserved-words.php)

viperet commented 5 years ago

Validation added in 1.3.1