Skip to content

Commit

Permalink
Corrected call_user_func arguments (Codeception#3565)
Browse files Browse the repository at this point in the history
Fixed exception "call_user_func() expects parameter 1 to be a valid callback, no array or string given"
  • Loading branch information
Oleg authored and bulzgkri committed Jun 16, 2017
1 parent 7055bae commit c4f93d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Module/Yii2.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function _before(TestInterface $test)

// load fixtures before db transaction
if (method_exists($test, self::TEST_FIXTURES_METHOD)) {
$this->haveFixtures(call_user_func($test, self::TEST_FIXTURES_METHOD));
$this->haveFixtures(call_user_func([$test, self::TEST_FIXTURES_METHOD]));
}

if ($this->config['cleanup'] && $this->app->has('db')) {
Expand Down

0 comments on commit c4f93d8

Please sign in to comment.