phpstorm-magento-mapper
phpstorm-magento-mapper copied to clipboard
PHP Parse error
I get a php parse error:
php shell/generate-phpstorm-map.php --file .phpstorm.meta.php
PHP Parse error: syntax error, unexpected '.', expecting ',' or ';' in /vagrant/www/phpstorm-magento-mapper/shell/generate-phpstorm-map.php on line 381
If I remove the static keyword the error goes away. My php version PHP 5.5.9-1ubuntu4.13
and Magento version 1.9.2.2
confirmed (PHP 5.5.9-1ubuntu4.6, magento 1.9.2.2)
Please feel free to open a PR, I don't actually use this code any more since Magicento came around.
Fixed with #7?
I don't know. I'm surprised people still use this script - with Magicento PHPStorm doesn't need the mappings for Magento 1 any more, and it doesn't create mappings for Magento 2.