yii2-apidoc: Error: Getting unknown property: yii\apidoc\models\InterfaceDoc::parentClass

When i run the console command to generate a json version of the docs i get:

Error: Getting unknown property: yii\apidoc\models\InterfaceDoc::parentClass

the sh file

#!/bin/sh

LUYA=vendor/luyadev/luya/core
ADMIN=vendor/luyadev/luya-module-admin/src
CMS=vendor/luyadev/luya-module-cms/src
SUITE=vendor/luyadev/luya-testsuite
YII=vendor/yiisoft/yii2
HELPERS=vendor/luyadev/yii-helpers/src
OUTPUT=data

./vendor/bin/apidoc api $LUYA,$ADMIN,$CMS,$YII,$SUITE,$HELPERS $OUTPUT --interactive=0 --template=json

Could not dig deeper but, it seems the process ends afterwards.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23 (17 by maintainers)

Commits related to this issue

Most upvoted comments

@brandonkelly I’m afraid I cannot give you such easy solution, I still work on a new version, that will handle PHP7.2+ code specific things.

This should throw the error:

#!/bin/sh

git clone git@github.com:luyadev/luya-kickstarter.git

cd luya-kickstarter

composer install
composer require luyadev/luya:^2.0 --update-with-all-dependencies
rm -rf composer.lock
composer require yiisoft/yii2-apidoc:^2.0 --update-with-all-dependencies

rm -rf vendor/yiisoft/yii2/base/Object.php

LUYA=vendor/luyadev/luya/core
ADMIN=vendor/luyadev/luya-module-admin/src
CMS=vendor/luyadev/luya-module-cms/src
SUITE=vendor/luyadev/luya-testsuite
YII=vendor/yiisoft/yii2
HELPERS=vendor/luyadev/yii-helpers/src
OUTPUT=data

./vendor/bin/apidoc api $LUYA,$ADMIN,$CMS,$YII,$SUITE,$HELPERS $OUTPUT --interactive=0 --template=json

At the end you have Error: Getting unknown property: yii\apidoc\models\InterfaceDoc::parentClass while generating your also able to see the other error, mentioned in issues:

image

Yes, it’s fixed.

Thanks @bizley. Yes, everything that finishes the docs and generating an output is a good result in this case 😃

sorry for not providing that directly PHP 7.2.24-0ubuntu0.18.04.8 (cli) (built: Jul 5 2021 17:41:32) ( NTS )