You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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_.*$.
The text was updated successfully, but these errors were encountered:
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:
Examples of insecure functions:
exec
,md5
,unserialize
,assert
.The first part of the rule should cover following:
*/Test/*
and*/lib/*
).Examples of discouraged functions:
sizeof
,print_r
,^socket_.*$
,^stream_.*$
.The text was updated successfully, but these errors were encountered: