Skip to content

Commit e9ca098

Browse files
Fix incorrect annotations in Livewire components using "@return void" (#1467)
* Fix type annotations in Livewire components using "@return void" when a return value is possible * Update src/Http/Livewire/UpdateProfileInformationForm.php * Update src/Http/Livewire/TeamMemberManager.php * Update src/Http/Livewire/UpdateProfileInformationForm.php --------- Co-authored-by: Dries Vints <[email protected]>
1 parent f542bc2 commit e9ca098

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Http/Livewire/CreateTeamForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CreateTeamForm extends Component
2222
* Create a new team.
2323
*
2424
* @param \Laravel\Jetstream\Contracts\CreatesTeams $creator
25-
* @return void
25+
* @return mixed
2626
*/
2727
public function createTeam(CreatesTeams $creator)
2828
{

src/Http/Livewire/TeamMemberManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function stopManagingRole()
183183
* Remove the currently authenticated user from the team.
184184
*
185185
* @param \Laravel\Jetstream\Contracts\RemovesTeamMembers $remover
186-
* @return void
186+
* @return \Illuminate\Http\RedirectResponse
187187
*/
188188
public function leaveTeam(RemovesTeamMembers $remover)
189189
{

src/Http/Livewire/UpdateProfileInformationForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function mount()
5050
* Update the user's profile information.
5151
*
5252
* @param \Laravel\Fortify\Contracts\UpdatesUserProfileInformation $updater
53-
* @return void
53+
* @return \Illuminate\Http\RedirectResponse|null
5454
*/
5555
public function updateProfileInformation(UpdatesUserProfileInformation $updater)
5656
{

0 commit comments

Comments
 (0)