akalongman / sublimetext-codeformatter

Code Formatter plugin for ST2/ST3
MIT License
771 stars 131 forks source link

Eror while beautifying php #29

Closed mosko closed 10 years ago

mosko commented 10 years ago

Hey guys, installed the package, php, pear, php_beautifier, node.js and getting this error while running the formatter:

CodeFormatter

Format error: PHP Strict Standards: Non-static method Console_Getopt::readPHPArgv() should not be called statically in /usr/bin/php_beautifier on line 70 PHP Strict Standards: Non-static method Console_Getopt::getopt() should not be called statically in /usr/bin/php_beautifier on line 84 PHP Strict Standards: Non-static method Console_Getopt::doGetopt() should not be called statically in /usr/share/php/Console/Getopt.php on line 92 PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /usr/share/php/Console/Getopt.php on line 109 PHP Strict Standards: Non-static method Console_Getopt::_parseShortOption() should not be called statically in /usr/share/php/Console/Getopt.php on line 166 PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /usr/share/php/Console/Getopt.php on line 167 PHP Strict Standards: Non-static method Console_Getopt::_parseShortOption() should not be called statically in /usr/share/php/Console/Getopt.php on line 166 PHP Strict Standards: Non-static method Console_Getopt::_isShortOpt() should not be called statically in /usr/share/php/Console/Getopt.php on line 220 PHP Strict Standards: Non-static method Console_Getopt::_isLongOpt() should not be called statically in /usr/share/php/Console/Getopt.php on line 221 PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /usr/share/php/Console/Getopt.php on line 167 PHP Strict Standards: Non-static method Console_Getopt::_parseShortOption() should not be called statically in /usr/share/php/Console/Getopt.php on line 166 PHP Strict Standards: Non-static method Console_Getopt::_isShortOpt() should not be called statically in /usr/share/php/Console/Getopt.php on line 220 PHP Strict Standards: Non-static method Console_Getopt::_isLongOpt() should not be called statically in /usr/share/php/Console/Getopt.php on line 221 PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /usr/share/php/Console/Getopt.php on line 167 PHP Strict Standards: Non-static method Console_Getopt::_parseShortOption() should not be called statically in /usr/share/php/Console/Getopt.php on line 166 PHP Strict Standards: Non-static method Console_Getopt::_isShortOpt() should not be called statically in /usr/share/php/Console/Getopt.php on line 220 PHP Strict Standards: Non-static method Console_Getopt::_isLongOpt() should not be called statically in /usr/share/php/Console/Getopt.php on line 221 PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /usr/share/php/Console/Getopt.php on line 167 PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /usr/bin/php_beautifier on line 85 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Config.php on line 650 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Config.php on line 697 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Config.php on line 757 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Config.php on line 786 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Config.php on line 914 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Config.php on line 1577 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Config.php on line 1607 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Config.php on line 2038 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Config.php on line 2091 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Registry.php on line 322 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Registry.php on line 1450 PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/share/php/PEAR/Registry.php on line 1458 PHP Strict Standards: Non-static method System::tmpdir() should not be called statically, assuming $this from incompatible context in /usr/share/php/PEAR/Config.php on line 158 PHP Strict Standards: Non-static method System::tmpdir() should not be called statically, assuming $this from incompatible context in /usr/share/php/PEAR/Config.php on line 167 PHP Strict Standards: Non-static method System::tmpdir() should not be called statically, assuming $this from incompatible context in /usr/share/php/PEAR/Config.php on line 176 PHP Strict Standards: Non-static method System::which() should not be called statically, assuming $this from incompatible context in /usr/share/php/PEAR/Config.php on line 228

ubuntu 13.10 st3.. anything :) ?

thanks in advance!

KelioDev commented 10 years ago

Hi,

I have the same issue.

Thanks for your help

Surt commented 10 years ago

Same issue here.

mojowill commented 10 years ago

I have the same problem I think this is a problem with PHP_Beautifier not having been updated to deal with PHP 5.4+

bitclaw commented 10 years ago

Same here, thanks for your help!

lucacri commented 10 years ago

Same here

Thijmen commented 10 years ago

+1

akalongman commented 10 years ago

Check 2.1.0 version from git and report me

mosko commented 10 years ago

works great! thanks!