{"repo":"szepeviktor/phpstan-wordpress","free":true,"listed":false,"github":"https://github.com/szepeviktor/phpstan-wordpress","clone":"git clone https://github.com/szepeviktor/phpstan-wordpress.git","description":"WordPress extensions for PHPStan ⛏️","language":"PHP","stars":331,"topics":["static-analysis","phpstan-extension","wordpress","phpstan"],"license":"MIT","category":"dev-tools","readme_excerpt":"[!IMPORTANT] Hello everyone! This is Viktor who runs this PHPStan extension. I am planning to stop contributing to the WordPress ecosystem because it is extremely difficult and no one asks me to join his team as I am a thinker, a devops person, a tool maker (not a builder). Please support my work to avoid abandoning this package. Thank you! WordPress Extensions for PHPStan Static analysis for the WordPress ecosystem. - PHPStan - WordPress Features - Enables PHPStan to analyze WordPress plugins and themes. - Loads the php-stubs/wordpress-stubs package. - Provides dynamic return type extensions for functions that are not covered in php-stubs/wordpress-stubs - Defines some WordPress core constants. - Validates optional docblocks before apply filters() and do action() calls, treating the type of the first @param as definitive. Requirements - PHPStan 2.0 or higher - PHP 7.4 or higher (tested up to PHP 8.3) Installation To use this extension, require it in Composer: If you also install phpstan/extension-installer then you're all set! Manual Installation If you don't want to use phpstan/extension-installer , include extension.neon in your project's PHPStan config: Configuration No additional setup is needed. :smiley: Just configure PHPStan - for example - as shown below: For more details, visit the PHPStan Config Reference. :bulb: Use the Composer autoloader or a custom autoloader! Usage Run the analysis with: then fix an error and GOTO 10 ! You find further information in the examp","default_branch":null,"files":null,"tree":[],"storefront":"/r/szepeviktor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/szepeviktor/phpstan-wordpress/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}