Skip to content

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

@patrickcurl

Description

@patrickcurl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions