-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove final from render #105
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,7 @@ protected function registerTestingMacros(): void | |
$component = FragmentMap::get($component); | ||
} | ||
|
||
return $this->assertSeeLivewire($component); // @phpstan-ignore-line | ||
return $this->assertSeeLivewire($component); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this change made? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The static analysis in the github action for the PR threw an error because there was nothing to ignore anymore. I suspect the original suppression was because of the use of final? Happy to revert |
||
}); | ||
|
||
TestResponse::macro('assertDontSeeVolt', function ($component) { | ||
|
@@ -126,7 +126,7 @@ protected function registerTestingMacros(): void | |
$component = FragmentMap::get($component); | ||
} | ||
|
||
return $this->assertDontSeeLivewire($component); // @phpstan-ignore-line | ||
return $this->assertDontSeeLivewire($component); | ||
}); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this unrelated change made?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taylorotwell sorry, yep this was needed further down the track of my implementation. The mingle lib needs a
component
method defined to point to the react/vue component it should render, and I wanted to add it automatically as I'm extracting the component from the blade file itself (see https://github.com/deanmcpherson/mingle/blob/main/src/Mingle.php), but variables added to the default array before this is run were getting overridden here.