[New Rule] No try block detected when processing system resources #21
Labels
accepted
New rule is accepted
new rule
New feature implementation
on hold
The issue or PR is on hold.
technical guidelines
The rule is based on Magento Technical Guidelines
Rule
If a method uses system resources (such as files, sockets, streams, etc), the code MUST be wrapped with a try block and the corresponding finally block. In the finally sections, all resources SHOULD be properly released.
Reason
Source: Magento Technical Guidelines.
Implementation
T_STRING
token.stream_
,socket_
, etc)in_array
of system functions.try
statement detected.The text was updated successfully, but these errors were encountered: