Skip to content

Update getRules() to stay compatible with future v. of Livewire#3054

Merged
danharrin merged 2 commits into
filamentphp:2.xfrom
tanthammar:patch-1
Jul 17, 2022
Merged

Update getRules() to stay compatible with future v. of Livewire#3054
danharrin merged 2 commits into
filamentphp:2.xfrom
tanthammar:patch-1

Conversation

@tanthammar
Copy link
Copy Markdown
Contributor

@tanthammar tanthammar commented Jul 7, 2022

There's been som chatter about changing Livewire\Component::getRules() to support this'n'that...

Thought best to change the current InteractsWithForms::getRules() to pull in the original Livewire method instead of manually replicating it. To stay compatible with however it changes.

I chose not to use parent::getRules() as there may be multiple parents, thus causing potential errors.

@danharrin
Copy link
Copy Markdown
Member

danharrin commented Jul 8, 2022

Sorry, could you elaborate more on why we're not using parent::getRules()?

@danharrin danharrin added the task label Jul 8, 2022
@tanthammar
Copy link
Copy Markdown
Contributor Author

tanthammar commented Jul 8, 2022

I got warnings in php storm that there were multiple parents. So I addressed Livewire directly to avoid any potential inheritance problems.

@danharrin danharrin merged commit da47d90 into filamentphp:2.x Jul 17, 2022
@tanthammar tanthammar deleted the patch-1 branch August 25, 2022 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants