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

Remove EntryQueryBuilder type declarations in Entry query #65

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Remove EntryQueryBuilder type declarations in Entry query #65

merged 1 commit into from
Oct 5, 2023

Conversation

DwainsWorld
Copy link
Contributor

@DwainsWorld DwainsWorld commented Oct 5, 2023

When using the Eloquent Driver I cannot use this package due to the type declarations.

TransformStudios\Events\Events::TransformStudios\Events\{closure}(): Argument #1 ($query) must be of type Statamic\Stache\Query\EntryQueryBuilder, Statamic\Eloquent\Entries\EntryQueryBuilder given, called in /var/www/html/vendor/statamic/cms/src/Query/EloquentQueryBuilder.php on line 357

Hopefully you're okay removing these? I can't see any of these type declarations throughout the Statamic CMS codebase where the Entry facade is being used...

@edalzell edalzell added the fix label Oct 5, 2023
@edalzell
Copy link
Member

edalzell commented Oct 5, 2023

Sigh.

Ya I guess I'm fine with this because there doesn't seem to be a good way to typehint it.

@edalzell edalzell merged commit efe3f69 into transformstudios:main Oct 5, 2023
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants