Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function __construct($writer) |
||
28 | { |
||
29 | // If not Translation writer from sf 2.7 to 3.3 |
||
30 | if (!$writer instanceof TranslationWriter) { |
||
31 | throw new \LogicException(sprintf('PHP-Translation/SymfonyStorage does not support a TranslationWriter of type "%s".', get_class($writer))); |
||
32 | } |
||
33 | |||
34 | $this->writer = $writer; |
||
35 | } |
||
36 | |||
42 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.