Comments (2)
Hi,
From Laravel docs:
Scopes should always return the same query builder instance or void
So, returning query results from scopes is not supported.
from larastan.
Aaw =( The Laravel code is perfectly set up for this. And Larastan code too. Why doesn't it use the return type it finds? Still curious.
from larastan.
Related Issues (20)
- Call to undefined method PHPStan\Type\ErrorType::getValue() HOT 2
- Improve Laravel 11 attribute casting HOT 5
- Using Laravel 11 casts with classes HOT 2
- Incompatible versions installed by composer due to tag/config (v1.* ... yeah, I know) HOT 2
- Generic parent methods erroneously treated as private
- Support migrations in modules more flexible HOT 1
- Wrong return type on whereRaw HOT 3
- TWhenReturnType error HOT 1
- Larastan 2.9.7 dependencies broken HOT 2
- Internal error: Call to undefined method PHPStan\Type\ErrorType::getValue() HOT 4
- Access to an undefined property on a JsonResource HOT 1
- Variable "$foo" is propably undefined when using ->when() function on eloquent. HOT 2
- "Access to an undefined property" for all properties of models that are not direct descendants of the Model class HOT 6
- Call to an undefined static method Illuminate\Support\Str::kebab() HOT 3
- error when installing larastan on fresh herd project HOT 1
- Access to an undefined property HOT 1
- The `analyse` command doesn't seem to properly traverse nested directories HOT 16
- Larastan does not like if a column is created with $table->ipAddress() HOT 4
- Unable to install: requirements could not be resolved to an installable set of packages HOT 1
- PHPStan failure in neovim when HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from larastan.