Skip to content

MichaelGooden/phpstan-zend-mvc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Zend Framework 3 extensions for PHPStan

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%