Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method visibility removed for only one method named new() #19

Open
patrickcurl opened this issue Dec 29, 2016 · 1 comment
Open

Method visibility removed for only one method named new() #19

patrickcurl opened this issue Dec 29, 2016 · 1 comment

Comments

@patrickcurl
Copy link

I can't really track down why this is happening... except that it only happens when I have phpfmt enabled on save.

I have this function:
`public function new () {
$this->hasPermissions('coupons', 'all');
$data['products'] = Product::findWithoutOptions();
$data['stores'] = $this->authUser()->getStorePermissions();

    return view('admin.coupons.new', $data);
}`

on save:

`function new () {
$this->hasPermissions('coupons', 'all');
$data['products'] = Product::findWithoutOptions();
$data['stores'] = $this->authUser()->getStorePermissions();

    return view('admin.coupons.new', $data);

}`

if I rename the function, then it works, or if I rename it, and create a new function named new() it also removes the visibility. I've toggled all settings, and removed transformations, and still having the issue.

@MKCG
Copy link

MKCG commented Dec 6, 2017

I solved this problem there : https://github.com/MKCG/phpfmt_7-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants