Skip to content

[11.x] Make withoutDefer also return $this#53644

Merged
taylorotwell merged 1 commit intolaravel:11.xfrom
tamiroh:add-missing-return-this
Nov 25, 2024
Merged

[11.x] Make withoutDefer also return $this#53644
taylorotwell merged 1 commit intolaravel:11.xfrom
tamiroh:add-missing-return-this

Conversation

@tamiroh
Copy link
Copy Markdown
Contributor

@tamiroh tamiroh commented Nov 24, 2024

For consistency with other similar methods in the same trait, it is better to make the withoutDefer method also return $this.

I also think it may be a forgetting of the return statement since it is written as @return $this on the PHPDoc.

@tamiroh tamiroh changed the title Make InteractsWithContainer::withoutDefer also return $this [11.x ]Make InteractsWithContainer::withoutDefer also return $this Nov 24, 2024
@tamiroh tamiroh changed the title [11.x ]Make InteractsWithContainer::withoutDefer also return $this [11.x] Make InteractsWithContainer::withoutDefer also return $this Nov 24, 2024
@tamiroh tamiroh changed the title [11.x] Make InteractsWithContainer::withoutDefer also return $this [11.x] Make withoutDefer also return $this Nov 24, 2024
@github-actions
Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@tamiroh tamiroh marked this pull request as ready for review November 24, 2024 01:49
@taylorotwell taylorotwell merged commit 74d9639 into laravel:11.x Nov 25, 2024
@tamiroh tamiroh deleted the add-missing-return-this branch November 30, 2024 07:05
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