Closed
Description
Description
Magento2.PHP.DiscouragedFunction
needs to be changed in order to cover different use-cases.
Expected behavior
The first part of the rule should cover following:
- The use of insecure functions triggers 9 severity warning (applicable to all codebase).
Examples of insecure functions:exec
,md5
,unserialize
,assert
.
The first part of the rule should cover following:
- The use of discouraged functions triggers 8 severity warning (not applicable to
*/Test/*
and*/lib/*
).
Examples of discouraged functions:sizeof
,print_r
,^socket_.*$
,^stream_.*$
.