Giter Club home page Giter Club logo

Comments (7)

ondrejmirtes avatar ondrejmirtes commented on August 22, 2024

Hi, it should just work thanks to this file: https://github.com/phpstan/phpstan-shim/blob/master/bootstrap.php

Can you share a project where it doesn't work?

from phpstan-shim.

romainneutron avatar romainneutron commented on August 22, 2024

Given the purpose of the repo

This repository provides easy way to install PHPStan without the risk of conflicting dependencies.

There should be no reason to replace a vendor.
The purpose of this repo is to provide a version of PHPStan that should not conflict with other deps.
I think this is a design issue.

Replacing a vendor at a given version is clearly a dependency conflict.
What happens if I would like to use a custom fork of nikic/php-parser?

from phpstan-shim.

ondrejmirtes avatar ondrejmirtes commented on August 22, 2024

Unfortunately it's tightly coupled to nikic/php-parser because the rules and extensions accept various AST nodes from it.

from phpstan-shim.

romainneutron avatar romainneutron commented on August 22, 2024

Yes, I understand, but what's preventing from having a standalone phar that packages the php parser at desired version ?

from phpstan-shim.

ondrejmirtes avatar ondrejmirtes commented on August 22, 2024

That's exactly what I do here.

from phpstan-shim.

kszymukowicz avatar kszymukowicz commented on August 22, 2024

I have the same problem.
FriendsOfTYPO3/extension_builder#208

from phpstan-shim.

ondrejmirtes avatar ondrejmirtes commented on August 22, 2024

Please test the current dev-master. 10caff5

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.