laravel-ide-helper
laravel-ide-helper copied to clipboard
handle protected methods with the attribute syntax
Summary
Laravel introduced a new syntax to define attribute "accessors / mutators" in https://github.com/laravel/framework/pull/40022
Support for this new syntax was added in https://github.com/barryvdh/laravel-ide-helper/pull/1289
However, laravel documentation asks to use protected methods, but #1289 only looked at the public methods. This PR will also include protected methods.
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
Checklist
- [x] Add a CHANGELOG.md entry
- [x] Code style has been fixed via
composer fix-style
- [x] Updated the existing test and the corresponding snapshot
@barryvdh I've tested this in our applications and it works perfectly. Could you look into this some time?
@barryvdh can review this PR ?
FTR: this competes with #1339 which covers additional cases and is thus preferred
I merged #1339 Does this solve your issue? @keatliang2005 @mridul89 @sforward
I merged #1339 Does this solve your issue? @keatliang2005 @mridul89 @sforward
Hi,
#1531 is still pending, and may have been introduced by #1339. I don't know however if this one addresses that issue.