Skip to content
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

Don't include whereDate / whereMonth / whereDay / whereYear / whereTime #1624

Open
joelstein opened this issue Dec 2, 2024 · 0 comments
Open
Labels

Comments

@joelstein
Copy link

Versions:

  • ide-helper Version: 3.2.2
  • Laravel Version: 11.34.2
  • PHP Version: 8.3.14

Description:

This wonderful package (thank you!) adds something like the following if I have a date column on my model:

@method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereDate($value)

However, whereDate is a Laravel method on Illuminate\Database\Query\Builder. Thus, it won't work to do something like this:

$invoice->whereDate(Date::today())->first();

We should exclude these methods:

  • whereDate
  • whereMonth
  • whereDay
  • whereYear
  • whereTime
@joelstein joelstein added the bug label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant