You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
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.
The text was updated successfully, but these errors were encountered:
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();
on save:
`function new () {
$this->hasPermissions('coupons', 'all');
$data['products'] = Product::findWithoutOptions();
$data['stores'] = $this->authUser()->getStorePermissions();
}`
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.
The text was updated successfully, but these errors were encountered: