Skip to content

struggle-for-php/sfp-coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

struggle-for-php/sfp-coding-standard

ForbiddenInstantiationSniff

setup in your phpcs.xml

eg.

    <config name="installed_paths" value="../../slevomat/coding-standard,../../struggle-for-php/sfp-coding-standard"/>
    <rule ref="SfpCodingStandard.Di.ForbiddenInstantiation">
        <properties>
            <property name="forbiddenInstantiations" type="array">
                <element key="App\\PdoFactory" value="PDO"/>
            </property>
        </properties>
    </rule>

Todos

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages