Skip to content

Commit 20ea224

Browse files
committed
test: THIS SHOULD FAIL - testing against false positives
1 parent b55f175 commit 20ea224

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Greeter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
namespace App;
33

44
class Greeter {
5-
public function greet(?string $name = null):string {
6-
if($name) {
7-
return "Hello, $name!";
5+
public function greet(?string $n = null):string {
6+
if($n) {
7+
return "Hello, $n!";
88
}
99

1010
return "Hello!";

0 commit comments

Comments
 (0)