Coder Social home page Coder Social logo

Comments (4)

cebe avatar cebe commented on June 22, 2024

please set YII_DEBUG to true here: https://github.com/yiisoft/yii2-apidoc/blob/master/apidoc#L11 and post the full stack trace of the error.

from yii2-apidoc.

nadar avatar nadar commented on June 22, 2024
Searching files to process... done.
Loading apidoc data from cache... no data available.
Checking for updated files... done.
137 files to update.
Processing files... done.
Updating cross references and backlinks... PHP Warning 'yii\base\ErrorException' with message 'array_merge(): Argument #1 is not an array'

in /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2-apidoc/models/Context.php:187

Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'array_merge(): ...', '/Applications/M...', 187, Array)
#1 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2-apidoc/models/Context.php(187): array_merge(NULL, Array)
#2 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2-apidoc/models/Context.php(138): yii\apidoc\models\Context->updateSubInterfaceInheritance(Object(stdClass))
#3 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2-apidoc/components/BaseController.php(148): yii\apidoc\models\Context->updateReferences()
#4 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2-apidoc/commands/ApiController.php(108): yii\apidoc\components\BaseController->updateContext(Object(yii\apidoc\models\Context))
#5 [internal function]: yii\apidoc\commands\ApiController->actionIndex(Array, 'public_html/api')
#6 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array)
#7 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array)
#8 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2/console/Controller.php(91): yii\base\Controller->runAction('', Array)
#9 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2/base/Module.php(455): yii\console\Controller->runAction('', Array)
#10 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2/console/Application.php(167): yii\base\Module->runAction('api', Array)
#11 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2/console/Application.php(143): yii\console\Application->runAction('api', Array)
#12 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2/base/Application.php(375): yii\console\Application->handleRequest(Object(yii\console\Request))
#13 /Applications/MAMP/htdocs/luya.io/vendor/yiisoft/yii2-apidoc/apidoc(53): yii\base\Application->run()
#14 {main}

from yii2-apidoc.

cebe avatar cebe commented on June 22, 2024

Thanks. I have checked in a fix that might solve this. Can you update to latest master and try again?

from yii2-apidoc.

nadar avatar nadar commented on June 22, 2024

Seems to work again, thanks.

from yii2-apidoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.