phpstorm-magento-mapper icon indicating copy to clipboard operation
phpstorm-magento-mapper copied to clipboard

PHP Parse error

Open natewlew opened this issue 9 years ago • 4 comments

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

natewlew avatar Nov 17 '15 20:11 natewlew

confirmed (PHP 5.5.9-1ubuntu4.6, magento 1.9.2.2)

maximilianmikus avatar Nov 30 '15 14:11 maximilianmikus

Please feel free to open a PR, I don't actually use this code any more since Magicento came around.

Vinai avatar Dec 02 '15 11:12 Vinai

Fixed with #7?

sreichel avatar Jan 09 '18 00:01 sreichel

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.

Vinai avatar Jan 10 '18 06:01 Vinai