Comments (3)
Hi,
Maybe you also upgraded the PHPStan version during the upgrade to Laravel 11. I don't think Larastan itself causing the issue. Please try with the older version of PHPStan first and see if it is slow still. If it is we might say it's an issue with Larastan, if not probably it's an issue with PHPStan itself and open an issue there.
Thank you.
from larastan.
We execute Larastan on a Laravel installation in the tests:
19s on Laravel 11:
https://github.com/larastan/larastan/actions/runs/8993915765/job/24706568451
20s on Laravel 10:
https://github.com/larastan/larastan/actions/runs/8993915765/job/24706567912
This would appear to be influenced by your specific config/files/etc. Without additional information there's not much we can do.
Try running PHPStan with the --debug -vvv
switches to see what files take the longest.
from larastan.
Thank you for your reply.
I used --debug
-vvv
and found the cause. It seemed to be a large enum file that was taking a long time.
Specifically, an enum file that has over 100 cases and several methods that reference them. If necessary, I will send you the file information so you can investigate.
As I repeat, this will be done immediately with no problem in Laravel 10, but this will start to slow down in Laravel 11.
Thank you in advance.
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.