1 | <?php |
||
18 | class PlaceholdersReplacer implements StepTester |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var StepTester |
||
23 | */ |
||
24 | private $baseTester; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $variantTags; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | private $variant; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | private $configsRepo; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | private $placeholders = FALSE; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | private $configPath; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | private $configSection; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | private $environment; |
||
60 | |||
61 | public function __construct(StepTester $baseTester, $variantTags, ConfigsRepository $configsRepo) |
||
67 | |||
68 | public function setEnvironment($environment) |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | * @todo use the tag to get correct section, not always the default one |
||
76 | */ |
||
77 | public function setUp(Environment $env, FeatureNode $feature, StepNode $step, $skip) |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function test(Environment $env, FeatureNode $feature, StepNode $step, $skip = false) |
||
104 | |||
105 | private function reconstructStep(StepNode $step) |
||
113 | |||
114 | private function replacePlaceholders($string, $var, $env) |
||
124 | |||
125 | private function getReplacement($placeholderKey) |
||
139 | |||
140 | private function recursivePlaceholderSearch($keys, $values, $treePosition) |
||
154 | |||
155 | /** |
||
156 | * {@inheritdoc} |
||
157 | */ |
||
158 | public function tearDown(Environment $env, FeatureNode $feature, StepNode $step, $skip, StepResult $result) |
||
162 | } |
||
163 |
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..