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 98c9d8f commit c85e0a0Copy full SHA for c85e0a0
tests/script.sh
@@ -84,3 +84,10 @@ if [[ ! -z "${caps}" ]]; then
84
echo -e "${caps}" | perl -pe 's/^(.*)$/All caps found in \1/'
85
exit 1
86
fi
87
+
88
+# Require identical comparison operators (===, not ==) in php files.
89
+equal=$(find . -type "f" -iname "*.php" ! -path "*/vendor/*" -exec egrep --color=always --line-number -H "[^!=]==[^=]" {} \;)
90
+if [[ ! -z "${equal}" ]]; then
91
+ echo -e "${equal}" | perl -pe 's/^(.*)$/Non-identical comparison operator found in \1/'
92
+ exit 1
93
+fi
0 commit comments