Skip to content

Commit

Permalink
Scan bean according to Composer settings (#115)
Browse files Browse the repository at this point in the history
* Parse namespace to dir path according to composer settings

* Update ComposerHelper.php

* Update PhpHelper.php
  • Loading branch information
huangzhhui authored Jul 3, 2018
1 parent 1f6bd09 commit fdd494b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/framework/src/Helper/PhpHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function isMac(): bool
*/
public static function call($cb, array $args = [])
{
$ret = null;
if (\is_object($cb) || (\is_string($cb) && \function_exists($cb))) {
$ret = $cb(...$args);
} elseif (\is_array($cb)) {
Expand Down

0 comments on commit fdd494b

Please sign in to comment.