Skip to content

Conversation

@jrmajor
Copy link
Contributor

@jrmajor jrmajor commented Apr 21, 2021

Introduced in #37022.

Now when I call $someModel->restore(), PHPStan uses this docblock:

* @method static static|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder restore()

Instead of the correct one:

/**
* Restore a soft-deleted model instance.
*
* @return bool|null
*/
public function restore()

PhpStorm also complains about that:

image

@taylorotwell taylorotwell merged commit 597f5ab into laravel:8.x Apr 21, 2021
@jrmajor jrmajor deleted the fix-docblock branch April 21, 2021 22:21
@jrmajor jrmajor changed the title Remove invalid docblock [8.x] Remove invalid docblock Apr 22, 2021
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