Giter Site home page Giter Site logo

phpstan-zend-framework's Introduction

PHPStan extension for Zend Framework MVC Controller Plugins

Adds support to PHPStan to correctly handle controller plugins that are called using magic __call() in \Zend\Mvc\Controller\AbstractController and children.

Installation

  • Add michaelgooden/phpstan-zend-mvc as a require-dev Composer dependency
  • Add the following to phpstan.neon in your top-level app directory
services:
    -
        class: PHPStan\Reflection\ZendMvc\PluginClassReflectionExtension
        tags:
            - phpstan.broker.methodsClassReflectionExtension
  • Run PHPStan with the config file switch phpstan -c phpstan.neon

phpstan-zend-framework's People

Contributors

bitwombat avatar michaelgooden avatar

Watchers

 avatar  avatar  avatar

phpstan-zend-framework's Issues

Support PHPStan 0.11 and all Zend ServiceManager and PluginManager

Hi, I'm rewriting this library to support latest version of PHPStan, and along controller plugins, also all other service manager and plugin managers of Zend\Mvc (see for example ModuleManagerFactory).

I see there's no commit since 2017, and this tells me you are probably not active anymore maintaining this tool.
I propose myself here to:

  1. Fork this library
  2. Add support for latest PHPStan versions
  3. Keep the extension up to date to future PHPStan versions
  4. Add support for all Zend\Mvc service manager and plugin managers
  5. Add tests
  6. Publish the library under PHPStan ecosystem (at the time of writing, its README.md)
  7. Publish the library under my name (only to ease the library management)

The updated library will be a fork and your contribution will be kept under composer authors, alongside @MichaelGooden

Do I have your permission to proceed @bitwombat ?

At the end of the process, I would also like to ask you to archive this library and to pinpoint in the README the new library link as a replacement.

Best regards, and thank you for your efforts on PHPStan.

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.