Skip to content

Conversation

@roelofr
Copy link

@roelofr roelofr commented Dec 29, 2020

I noticed my IDE (VS Code) was making a fuss about View::first() not returning a View instance, but a Factory (which it doesn't seem to return, since Illuminate\View\Factory returns a View instance (as noted in the factory docblock)

I added the correct return type to the View facade and added a small test assertion to ensure this type is returned (which might be useless, but I added it for good measure).

@roelofr roelofr marked this pull request as draft December 29, 2020 12:31
@roelofr
Copy link
Author

roelofr commented Dec 29, 2020

I noticed I was committing from the wrong user credentials, causing my gpg-signature to be unverified. Sorry about that.

@roelofr roelofr marked this pull request as ready for review December 29, 2020 12:35
@driesvints driesvints changed the title Correct return type on View facade's first() [8.x] Correct return type on View facade's first() Dec 29, 2020
@taylorotwell taylorotwell merged commit 2ce11ab into laravel:8.x Dec 29, 2020
@roelofr roelofr deleted the roelofr/fix-view-first-docblock branch December 29, 2020 16:29
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.

2 participants