assigning incompatible types to properties.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | namespace Redaxscript\Template\Helper; |
||
3 | |||
4 | use Redaxscript\Language; |
||
5 | use Redaxscript\Registry; |
||
6 | |||
7 | /** |
||
8 | * abstract class to create a helper class |
||
9 | * |
||
10 | * @since 3.0.0 |
||
11 | * |
||
12 | * @package Redaxscript |
||
13 | * @category Template |
||
14 | * @author Henry Ruhs |
||
15 | */ |
||
16 | |||
17 | abstract class HelperAbstract implements HelperInterface |
||
18 | { |
||
19 | /** |
||
20 | * instance of the registry class |
||
21 | * |
||
22 | * @var Registry |
||
23 | */ |
||
24 | |||
25 | protected $_registry; |
||
26 | |||
27 | /** |
||
28 | * instance of the language class |
||
29 | * |
||
30 | * @var Registry |
||
31 | */ |
||
32 | |||
33 | protected $_language; |
||
34 | |||
35 | /** |
||
36 | * constructor of the class |
||
37 | * |
||
38 | * @since 3.0.0 |
||
39 | * |
||
40 | * @param Registry $registry instance of the registry class |
||
41 | * @param Language $language; instance of the language; class |
||
42 | */ |
||
43 | |||
44 | 53 | public function __construct(Registry $registry, Language $language) |
|
45 | { |
||
46 | 53 | $this->_registry = $registry; |
|
47 | 53 | $this->_language = $language; |
|
0 ignored issues
–
show
|
|||
48 | } |
||
49 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..