We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0756f2 commit 704f3d1Copy full SHA for 704f3d1
dev/tests/static/framework/Magento/Sniffs/Strings/StringPositionSniff.php
@@ -9,11 +9,11 @@
9
use PHP_CodeSniffer\Files\File;
10
11
/**
12
- * Detects misusing of IS_IDENTICAL operators.
+ * Detects misusing of IS_IDENTICAL operators when `strpos` and `stripos` functions are used in a condition.
13
*
14
* Examples:
15
* if (!strpos($haystack, $needle)) {}
16
- * if (strpos($haystack, $needle) == false) {}
+ * if (stripos($haystack, $needle) == false) {}
17
*/
18
class StringPositionSniff implements Sniff
19
{
0 commit comments