Skip to content

Commit fe53a33

Browse files
committed
CS: enforce consistent formatting of return types
1 parent 36f544e commit fe53a33

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

phpcs.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,7 @@
164164

165165
<!-- Require visibility for class constants. -->
166166
<rule ref="PSR12.Properties.ConstantVisibility"/>
167+
168+
<!-- Handle consistent formatting of return types. -->
169+
<rule ref="PSR12.Functions.ReturnTypeDeclaration"/>
167170
</ruleset>

src/Files/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ public function getFixedWarningCount()
12291229
*
12301230
* @return int
12311231
*/
1232-
public function getFirstRunCount(string $type):int
1232+
public function getFirstRunCount(string $type): int
12331233
{
12341234
return $this->firstRunCounts[$type];
12351235

0 commit comments

Comments
 (0)