Skip to content

Commit

Permalink
Merge pull request #3 from CZechBoY/patch-1
Browse files Browse the repository at this point in the history
Nette 2.4 compatibility
  • Loading branch information
MartkCz committed Oct 19, 2016
2 parents d2df9e6 + fed88b8 commit 91ce172
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Wizard.php
Expand Up @@ -176,7 +176,7 @@ public function create($step = NULL) {
protected function createComponent($name) {
$ucname = ucfirst($name);
$method = 'create' . $ucname;
if ($ucname !== $name && method_exists($this, $method) && $this->getReflection()->getMethod($method)->getName() === $method) {
if ($ucname !== $name && method_exists($this, $method) && (new \ReflectionMethod($this, $method))->getName() === $method) {
$component = $this->$method($name);
if (!$component instanceof Forms\Form && !isset($this->components[$name])) {
$class = get_class($this);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/expected/start.expected
Expand Up @@ -25,7 +25,7 @@
</tr>
</table>

<div><input type="hidden" name="do" value="wizard-step1-submit"><!--[if IE]><input type=IEbug disabled style="display:none"><![endif]--></div>
<input type="hidden" name="_do" value="wizard-step1-submit"><!--[if IE]><input type=IEbug disabled style="display:none"><![endif]-->
</form>


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/expected/step1.expected
Expand Up @@ -20,7 +20,7 @@
</tr>
</table>

<div><input type="hidden" name="do" value="wizard-step1-submit"><!--[if IE]><input type=IEbug disabled style="display:none"><![endif]--></div>
<input type="hidden" name="_do" value="wizard-step1-submit"><!--[if IE]><input type=IEbug disabled style="display:none"><![endif]-->
</form>


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/expected/step2.expected
Expand Up @@ -21,7 +21,7 @@
</tr>
</table>

<div><input type="hidden" name="do" value="wizard-step2-submit"><!--[if IE]><input type=IEbug disabled style="display:none"><![endif]--></div>
<input type="hidden" name="_do" value="wizard-step2-submit"><!--[if IE]><input type=IEbug disabled style="display:none"><![endif]-->
</form>


Expand Down

0 comments on commit 91ce172

Please sign in to comment.