Pass strict to function parameter on specific position argument when no value provided
-array_search($value, $array);
+array_search($value, $array, true);
-base64_decode($string);
+base64_decode($string, true);
-in_array('a', $array);
+in_array('a', $array, true);
Remove error suppression operator @
inside try...catch blocks
try {
- @rmdir($dirname);
- } catch (Exception $e) {}
+ rmdir($dirname);
+} catch (Exception $e) {}
Change under_score names to camelCase
final class SomeClass
{
- public function run($a_b)
+ public function run($aB)
{
- $some_value = $a_b;
+ $someValue = $aB;
}
}