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 $placeholdersRepository; |
||
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, PlaceholdersRepository $placeholdersRepository) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | * @todo use the tag to get correct section, not always the default one |
||
71 | */ |
||
72 | public function setUp(Environment $env, FeatureNode $feature, StepNode $step, $skip) |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function test(Environment $env, FeatureNode $feature, StepNode $step, $skip = false) |
||
101 | |||
102 | private function reconstructStep(StepNode $step) |
||
115 | |||
116 | private function replacePlaceholders($string, $var, $env) |
||
126 | |||
127 | private function getReplacement($placeholderKey) |
||
141 | |||
142 | private function recursivePlaceholderSearch($keys, $values, $treePosition) |
||
156 | |||
157 | /** |
||
158 | * {@inheritdoc} |
||
159 | */ |
||
160 | public function tearDown(Environment $env, FeatureNode $feature, StepNode $step, $skip, StepResult $result) |
||
164 | } |
||
165 |
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..