You should not really be writing two or more classes in the same file. It's better to have a per file class so you can take advantage of autoloading in your project. I assume that the PHPComapanion package is not designed to work with several classes in the same file
Jan 22, 2018
1
Level 7
Sublime package PHP Companion issue (insert_php_constructor_property) not working as expected
Hi guys
My problem concerns the PHPCompanion sublime packages that Jeffrey talks about in his Sublime Series. More specifically the insert_php_constructor_property command.
It works well for the first class, but whenever I'm writing down another class further down the document and trigger the command (using escape) it jumps back to the top of the document and the first class and just adds another argument.
Any hints on how I could trigger it specifically for the class my cursor is on?
Thanks in advance
Please or to participate in this conversation.