It provides stub declarations for Timber core functions, classes and interfaces.
These stubs can help plugin and theme developers leverage static analysis tools like PHPStan.
The stubs are generated from timber/timber using php-stubs/generator.
- PHP ^8.0
Require this package as a development dependency with Composer.
composer require --dev mccomaschris/timber-stubsAlternatively you may download timber-stubs.php directly.