Skip to content

deprecated-packages/reveal-latte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPStan Latte Rules

Downloads

Rules for static analysis of Latte templates and Latte render() methods

Install

composer require reveal/reveal-latte --dev

Usage

@todo

Configuration

LatteCompleteCheckRule can check usage of all default latte filters. If you use some additional filters, register them in your phpstan.neon as latteFilters parameter. Use array [className, methodName] for static and dynamic method calls, and simple string for function calls:

parameters:
    latteFilters:
        someStaticFilter: [SomeFilterClass, processStatic]
        someDynamicFilter: [SomeFilterClass, processDynamic]
        someFunctionFilter: some_function

With application mapping registered in phpstan.neon LatteCompleteCheckRule can also check if your links are correct:

parameters:
    presenterFactoryMapping:
        *: App\*Module\*Presenter

Report Issues

In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker

Contribute

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.