Skip to content

Comments

Prioritize local dynamic methods over behavior-provided methods#130

Merged
LukeTowers merged 2 commits intodevelopfrom
wip/prioritize-dynamic-methods
Oct 24, 2022
Merged

Prioritize local dynamic methods over behavior-provided methods#130
LukeTowers merged 2 commits intodevelopfrom
wip/prioritize-dynamic-methods

Conversation

@LukeTowers
Copy link
Member

This prioritizes locally added dynamic methods over public methods that have been defined in behaviors that are implemented on the object.

This prioritizes locally added dynamic methods over public methods that have been defined in behaviors that are implemented on the object.
@mjauvin
Copy link
Member

mjauvin commented Oct 24, 2022

I've been dreaming of this for the past 6 years!

@LukeTowers
Copy link
Member Author

It's still not going to help with the problem of overriding methods that already exist on the class or its ancestors directly but at least now we can override methods that are defined on the behaviors

@LukeTowers LukeTowers added this to the 1.2.2 milestone Oct 24, 2022
@LukeTowers LukeTowers merged commit 415a9bc into develop Oct 24, 2022
@LukeTowers LukeTowers deleted the wip/prioritize-dynamic-methods branch October 24, 2022 19:32
LukeTowers added a commit that referenced this pull request Nov 30, 2022
* develop: (63 commits)
  Resync model getAttribute override with base Laravel functionality
  Convert Markdown parser to CommonMark (#133)
  Improve support for multiple database connections (#132)
  Make the SectionParser more extendable (#131)
  Fix static analysis errors
  Fixed generation of thumbnails for remote disks
  Get local root path from configured disk
  Use named arguments
  add more testing with pivot data
  Add Str::isJson() | is_json() helpers
  Code analysis fixes
  Register slug rule as part of Validation singleton registration
  Add slug validation rule
  Use Laravel's CLI components
  Use Laravel's CLI components
  Prioritize local dynamic methods over behavior-provided methods (#130)
  Delete unneeded PHPUnit config
  Re-enable code analysis on develop branch
  Fix PHPStan testing, minor tweaks to docs
  Pass the full model through add() and remove() methods
  ...
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

Successfully merging this pull request may close these issues.

3 participants