rspec/rules/S2737/php/compliant.adoc

18 lines
240 B
Plaintext
Raw Normal View History

[source,php]
----
$s = readMyFile($fileName);
----
or
[source,php]
----
$s = "";
try {
$s = readMyFile($fileName);
} catch (Exception $e) {
error_log($e->getMessage());
throw new MyException("an exception occurred", 2, $e);
}
----