Skip to content

Commit 5a0a7c7

Browse files
authored
Fixes: PHP Fatal error: UnusedVariableSniff (#3)
* Fixes: PHP Fatal error: Uncaught TypeError: Return value of SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff * composer update
1 parent 7b66697 commit 5a0a7c7

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

composer.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ModernTribe/ruleset.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
117117
<properties>
118118
<property name="spacesCountAroundEqualsSign" value="0"/>
119-
<property name="declareOnFirstLine" value="1"/>
119+
<property name="declareOnFirstLine" value="true"/>
120120
<property name="linesCountAfterDeclare" value="1"/>
121121
</properties>
122122
</rule>
@@ -129,12 +129,12 @@
129129
</rule>
130130
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility">
131131
<properties>
132-
<property name="fixable" value="1"/>
132+
<property name="fixable" value="true"/>
133133
</properties>
134134
</rule>
135135
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
136136
<properties>
137-
<property name="searchAnnotations" value="1"/>
137+
<property name="searchAnnotations" value="true"/>
138138
</properties>
139139
</rule>
140140
<!-- Checks for missing return typehints in case they can be declared natively -->
@@ -234,7 +234,7 @@
234234
<rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/>
235235
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable">
236236
<properties>
237-
<property name="ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach" value="1"/>
237+
<property name="ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach" value="true"/>
238238
</properties>
239239
</rule>
240240
<rule ref="SlevomatCodingStandard.Variables.UselessVariable"/>

0 commit comments

Comments
 (0)