Completed
Push — master ( 0ea243...da58d4 )
by Henry
10:25 queued 33s
created

includes/Template/Helper/HelperAbstract.php (1 issue)

assigning incompatible types to properties.

Bug Documentation Major

Upgrade to new PHP Analysis Engine

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 57
	public function __construct(Registry $registry, Language $language)
45
	{
46 57
		$this->_registry = $registry;
47 57
		$this->_language = $language;
0 ignored issues
show
Documentation Bug introduced by
It seems like $language of type object<Redaxscript\Language> is incompatible with the declared type object<Redaxscript\Registry> of property $_language.

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..

Loading history...
48
	}
49
}