Genesis functions stubs for static analysis.

v3.4.0 2022-10-01 23:15 UTC

This package is auto-updated.

Last update: 2023-03-29 01:11:34 UTC


Build Status

This package provides stub declarations for Genesis framework functions, classes and interfaces. These stubs can help plugin and theme developers leverage static analysis tools like PHPStan, which is not able to parse genesis as it is not clean OOP code.

Stubs are generated directly from the latest Genesis version that is required to be downloaded manually as it is blocked by a form. using giacocorsiglia/stubs-generator.


  • PHP >=7.1


Require this package as a development dependency with Composer.

composer require --dev php-stubs/genesis-stubs

Alternatively you may download genesis-stubs.php directly.

Usage in PHPStan

Include all stubs in PHPStan configuration file.

        - %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php
        - %rootDir%/../../php-stubs/genesis-stubs/genesis-stubs.php