Sublime Forum

Each function in codeFormatter.php

#1

Hello,
I am using PHP 7.2.0 and the each function is deprecated, but into the codeFormatter.php source at line 54,
there is an intruction using this function.
So, each time i am using my own sublime-snippet, the IDE doesn’t like it very much.
Is it possible to rewrite this line of code or tell me what i have to do ?
Best regards

0 Likes

#2

You can add following line in the end of your php.ini file to hide annoying message:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE
Also take a look at https://github.com/akalongman/sublimetext-codeformatter/issues/355, may be you can find better solution there.

0 Likes