Skip to content

Commit

Permalink
Reference global functions and constants via use
Browse files Browse the repository at this point in the history
  • Loading branch information
Majkl578 committed Jan 8, 2018
1 parent d9fe763 commit 15968c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"php": "^7.1",
"squizlabs/php_codesniffer": "^3.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.2",
"slevomat/coding-standard": "^4.2.1"
"slevomat/coding-standard": "dev-master#b9ba111f as 4.2.1.99999"
},
"extra": {
"branch-alias": {
Expand Down
8 changes: 6 additions & 2 deletions lib/Doctrine/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,13 @@
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
<properties>
<property name="allowFullyQualifiedGlobalClasses" type="boolean" value="true"/>
<property name="allowFullyQualifiedGlobalFunctions" type="boolean" value="true"/>
<property name="allowFullyQualifiedGlobalConstants" type="boolean" value="true"/>
<property name="allowFullyQualifiedGlobalFunctions" type="boolean" value="false"/>
<property name="allowFullyQualifiedGlobalConstants" type="boolean" value="false"/>
<property name="allowFallbackGlobalFunctions" type="boolean" value="false"/>
<property name="allowFallbackGlobalConstants" type="boolean" value="false"/>
<property name="allowFullyQualifiedNameForCollidingClasses" type="boolean" value="true"/>
<property name="allowFullyQualifiedNameForCollidingFunctions" type="boolean" value="true"/>
<property name="allowFullyQualifiedNameForCollidingConstants" type="boolean" value="true"/>
</properties>
</rule>
<!-- Forbid unused use statements -->
Expand Down

0 comments on commit 15968c3

Please sign in to comment.