Giter VIP home page Giter VIP logo

Comments (4)

hostep avatar hostep commented on July 23, 2024 1

Awesome, thanks a lot @shochdoerfer!

Looks like it works perfectly after quickly testing it out over here.

Great job!

from phpstan-magento.

hostep avatar hostep commented on July 23, 2024

Hmm, it is probably not as easy as I would have guessed due to some backwards incompatible changes which got introduced in version 0.12.0 of phpstan, here are some errors I ran into while messing around a bit:

PHP Fatal error:  Class bitExpert\PHPStan\Magento\Reflection\MagicMethodReflection contains 7 abstract methods and must therefore be declared abstract or implement the remaining methods (PHPStan\Reflection\MethodReflection::isDeprecated, PHPStan\Reflection\MethodReflection::getDeprecatedDescription, PHPStan\Reflection\MethodReflection::isFinal, ...) in vendor/bitexpert/phpstan-magento/src/bitExpert/PHPStan/Magento/Reflection/MagicMethodReflection.php on line 20

PHP Fatal error:  Class bitExpert\PHPStan\Magento\Reflection\MagicMethodReflection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (PHPStan\Reflection\ClassMemberReflection::getDocComment) in vendor/bitexpert/phpstan-magento/src/bitExpert/PHPStan/Magento/Reflection/MagicMethodReflection.php on line 22

PHP Fatal error:  Class bitExpert\PHPStan\Magento\Reflection\MagicMethodParameterReflection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (PHPStan\Reflection\ParameterReflection::getDefaultValue) in vendor/bitexpert/phpstan-magento/src/bitExpert/PHPStan/Magento/Reflection/MagicMethodParameterReflection.php on line 20

Good to know:

  • phpstan is now being delivered as a .phar file via composer since 0.12.0 (which makes it hard to find its source code in a local project)
  • the source code of phpstan is moved to https://github.com/phpstan/phpstan-src/

from phpstan-magento.

shochdoerfer avatar shochdoerfer commented on July 23, 2024

@hostep thanks for opening this issue. Sure we can upgrade the package to support the latest version of PHPStan. Would you be able to contribute a MR for this?

Looks like we better start versioning this package to support multiple versions for PHPStan...

from phpstan-magento.

hostep avatar hostep commented on July 23, 2024

Hi @shochdoerfer

I could look into creating a MR, but might take me a while, bit busy with a lot of things at the moment.

It might be possible to introduce a fix in a backwards compatible fashion though, but further investigation is needed.

from phpstan-magento.

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.