Giter Club home page Giter Club logo

Comments (3)

canvural avatar canvural commented on June 27, 2024 2

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.

calebdw avatar calebdw commented on June 27, 2024 1

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.

Sado4 avatar Sado4 commented on June 27, 2024

@calebdw (@szepeviktor)

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.

LibraryMasterEnum.php.zip

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.