Skip to content

Conversation

@guvra
Copy link
Contributor

@guvra guvra commented Dec 24, 2025

Fixes the following error when using mago in strict mode in tempest projects:

error[non-existent-class-like]: Class, Interface, or Trait `tempest\database\builder\querybuilders\supportswhereconditions` does not exist.
   ┌─ app/Repository/RecordRepository.php:50:1650 │           return query(Record::class)
   │ ╭────────────────^
51 │ │             ->select()
52 │ │             ->with('categories')
53 │ │             ->where('id = ?', $id)
   │ ╰──────────────────────────────────^ This expression refers to a non-existent class-like type

@innocenzi innocenzi changed the base branch from main to 3.x December 28, 2025 14:29
@innocenzi
Copy link
Member

Could you rebase on 3.x? 🙏

@guvra guvra force-pushed the fix-mago-analyzer-error branch from 41e09ad to f7c0b09 Compare December 29, 2025 23:06
@guvra
Copy link
Contributor Author

guvra commented Dec 29, 2025

@innocenzi Rebase done 👍

@innocenzi innocenzi changed the title fix(database): fix error reported by mago analyzer fix(database): update generics on query builder Dec 30, 2025
@innocenzi innocenzi merged commit 92908e3 into tempestphp:3.x Dec 30, 2025
75 checks passed
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