From b118a186422ea8cce999cb7915c3402e1afa113c Mon Sep 17 00:00:00 2001 From: Guilliam Xavier Date: Sat, 23 May 2020 15:54:59 +0200 Subject: [PATCH] Fix typo in StrStartsWithRector code sample --- rules/php80/src/Rector/Identical/StrStartsWithRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/php80/src/Rector/Identical/StrStartsWithRector.php b/rules/php80/src/Rector/Identical/StrStartsWithRector.php index 353bb57f72e..e8bfb98311a 100644 --- a/rules/php80/src/Rector/Identical/StrStartsWithRector.php +++ b/rules/php80/src/Rector/Identical/StrStartsWithRector.php @@ -58,7 +58,7 @@ class SomeClass { $isMatch = str_starts_with($haystack, $needle); - $isMatch = ! str_starts_with($haystack, $needle); + $isNotMatch = ! str_starts_with($haystack, $needle); } } PHP