Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
27 | public function setCompiledOutput($compiledOutput) |
||
28 | { |
||
29 | if (!StrUtils::canBeCastedToString($compiledOutput)) |
||
30 | { |
||
31 | @trigger_error('CompileProcessPostRenderPageView :: Value cannot be set to something that cannot be cast into a string.', E_USER_WARNING); |
||
|
|||
32 | |||
33 | return; |
||
34 | } |
||
35 | |||
36 | $this->compiledOutput = $compiledOutput; |
||
37 | } |
||
38 | } |
||
39 |
If you suppress an error, we recommend checking for the error condition explicitly: