sublimetext-codeformatter icon indicating copy to clipboard operation
sublimetext-codeformatter copied to clipboard

Error Deprectaed for PHP format

Open fretelweb opened this issue 7 years ago • 37 comments

image

Sublime text 3 PHP 7.2.1

fretelweb avatar Jan 11 '18 17:01 fretelweb

same

ncovercash avatar Jan 17 '18 01:01 ncovercash

Same with me. But actually the issue is from the phpf. I've try rise the issue to the repo but still no response by maintainer. Aahh, just realize that the project currently abandoned by the maintainer.

ghost avatar Jan 31 '18 10:01 ghost

Maybe its time to use other libs like http://cs.sensiolabs.org/

akalongman avatar Jan 31 '18 10:01 akalongman

+1

asolopovas avatar Feb 21 '18 17:02 asolopovas

+1

costapombo avatar Mar 06 '18 01:03 costapombo

@akalongman Any update on this?

bruce-atkinson avatar Mar 13 '18 08:03 bruce-atkinson

Not yet but I will fix it soon.

There is another option for CS: https://github.com/akalongman/sublimetext-codeformatter/issues/360

akalongman avatar Mar 13 '18 09:03 akalongman

I still vote for CS, because it has more maintainer. Just afraid another fork of phpfmt got abandoned again by the maintainer. But idk how big is the effort to switch to CS. We glad to help anyway. :D

ghost avatar Mar 13 '18 09:03 ghost

Does anyone have a work around or update?

rjksn avatar Apr 16 '18 14:04 rjksn

@akalongman

https://github.com/phpfmt-next/fmt

This package is also used by some vscode plugins. Looks promising. I have already replaced the bundled fmt.phar with this one on my system -> works so far ;)

droptable avatar Apr 16 '18 15:04 droptable

Integration of PHP-CS-FIXER is almost done, you can install dev version from the branch https://github.com/akalongman/sublimetext-codeformatter/tree/feature/php-fixer and test it. Now its formats with PSR-2 format but will be added configuring very soon

akalongman avatar Apr 16 '18 19:04 akalongman

PHP formatting is working great with the feature/php-fixer branch!

macbookandrew avatar Jun 01 '18 18:06 macbookandrew

I will add configuration options and the branch will be merged to master.

akalongman avatar Jun 01 '18 19:06 akalongman

Thanks! I’ve just started using ST. If I cloned this repo into the packages folder, do you know if it’ll automatically update when the newer package is available?

Thanks

macbookandrew avatar Jun 01 '18 20:06 macbookandrew

Yes, it will update and replace your folder

akalongman avatar Jun 02 '18 09:06 akalongman

Is there any update on this by any chance? Thanks

dompl avatar Jun 07 '18 07:06 dompl

Not yet, sorry. I am very busy with my current job. But I will do my best to finish this

akalongman avatar Jun 07 '18 07:06 akalongman

hi @akalongman any updates on this ?

niladam avatar Aug 01 '18 11:08 niladam

And now?

Scarboroid avatar Aug 31 '18 11:08 Scarboroid

hey @akalongman -- i'm sorry you've been so busy -- but think we could get some updates on this ?:)

Thanks ;)

niladam avatar Oct 31 '18 22:10 niladam

Any updates on this yet?

scottfriebel avatar Jul 29 '19 14:07 scottfriebel

+1

qoli avatar Jul 29 '19 18:07 qoli

+1

loro2 avatar Nov 05 '19 08:11 loro2

+1

estebanDT30 avatar Nov 05 '19 17:11 estebanDT30

+1

saurabh-cimpress avatar Nov 07 '19 06:11 saurabh-cimpress

Same issue here. Still. In 2020. 😩

PwrSrg avatar Jan 08 '20 21:01 PwrSrg

I'd like to use CodeFormatter but still getting this 'each' error with php v7.3.5. Is there any hope of a fix soon or any work-around?

chucksstein avatar Feb 07 '20 17:02 chucksstein

unzip it and replace the file in Data\Packages\CodeFormatter\lib\phpbeautifier\phpf.phar phpf.zip

silenkee avatar Feb 15 '20 15:02 silenkee

@silenkee does it support union-types and typed properties, or is this just another for-someones-personal-needs-patched fork of phpf?

asccc avatar Feb 15 '20 15:02 asccc

+1

huang-yuxin avatar May 31 '20 05:05 huang-yuxin