Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
51 | public function setCompiledOutput($compiledOutput) |
||
52 | { |
||
53 | if (StrUtils::canBeCastedToString($compiledOutput)) |
||
54 | { |
||
55 | @trigger_error('CompileProcessPostRenderPageView :: Value cannot be set to something that cannot be cast into a string.', E_USER_WARNING); |
||
|
|||
56 | |||
57 | return; |
||
58 | } |
||
59 | |||
60 | $this->compiledOutput = $compiledOutput; |
||
61 | } |
||
62 | } |
||
63 |
If you suppress an error, we recommend checking for the error condition explicitly: