Giter Club home page Giter Club logo

Comments (9)

ondrejmirtes avatar ondrejmirtes commented on August 22, 2024 1

It's mentioned in PHPStan 0.12 release notes and this article.

I've removed the mention of phpstan-shim in phpstan/phpstan README and I'm yet to update phpstan-shim repo README itself.

from phpstan-shim.

stof avatar stof commented on August 22, 2024

btw, is nikic/php-parser really autoloaded from the phar ? If no, the replacement rule should be dropped entirely.

from phpstan-shim.

ondrejmirtes avatar ondrejmirtes commented on August 22, 2024

phpstan-shim will be obsoleted on Tuesday. phpstan/phpstan 0.12 will consist of a single PHAR file and it doesn't have the replace problem.

from phpstan-shim.

emodric avatar emodric commented on August 22, 2024

@ondrejmirtes We're going back to my previous question on another issue: Symfony 5 support where you suggested to use phpstan-shim. Sure, it will be obsolete, but projects that will still rely on PHPStan 0.11 and want to upgrade to Symfony 5 cannot use phpstan-shim in certain cases.

See here for the issue I'm having because of the replace: composer/composer#8456

from phpstan-shim.

ondrejmirtes avatar ondrejmirtes commented on August 22, 2024

You can use phpstan/phpstan dev-master now or wait until Tuesday when it will be stable.

from phpstan-shim.

emodric avatar emodric commented on August 22, 2024

I can, but that will upgrade PHPStan to 0.12. Not something I can tackle right now, since on level 7 I'm currently using, upgrading results in way too much errors. Basically, if I want to keep using 0.11 for a while, I can't upgrade to Symfony 5.

from phpstan-shim.

ondrejmirtes avatar ondrejmirtes commented on August 22, 2024

You can use the baseline and be on 0.12: https://medium.com/@ondrejmirtes/phpstans-baseline-feature-lets-you-hold-new-code-to-a-higher-standard-e77d815a5dff It was created so that everyone can upgrade immediately.

from phpstan-shim.

emodric avatar emodric commented on August 22, 2024

Hm, okay. I wasn't aware of the baseline feature. Thanks!

from phpstan-shim.

alfredbez avatar alfredbez commented on August 22, 2024

phpstan-shim will be obsoleted on Tuesday. phpstan/phpstan 0.12 will consist of a single PHAR file and it doesn't have the replace problem.

Is this documented somewhere?

The README.md on phpstan/phpstan still says:

You can also use the phpstan/phpstan-shim package to install PHPStan via Composer without the risk of conflicting dependencies.

There is also no note about this in the README.md of this repository.

from phpstan-shim.

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.