Skip to content

Commit 411d09f

Browse files
committed
space
1 parent 60017cb commit 411d09f

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
final class SkipAlreadyNewlinedOverrideAndSensitiveParameters extends Foo
4+
{
5+
#[\Override]
6+
public function run(
7+
#[\SensitiveParameter]
8+
bool $param
9+
) {
10+
if ($this->isTrue($param)) {
11+
return 5;
12+
}
13+
14+
return '10';
15+
}
16+
17+
private function isTrue($value) {
18+
return $value === true;
19+
}
20+
}

rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function refactor(Node $node): ?Node
126126
"\n"
127127
)) {
128128
// add new line before
129-
$oldTokens[$attrGroup->getStartTokenPos() - 1]->text .= "\n ";
129+
$oldTokens[$attrGroup->getStartTokenPos() - 1]->text .= "\n";
130130
}
131131
}
132132

0 commit comments

Comments
 (0)