-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
My configuration is as follows.
return new Doctum($iterator, [
'title' => 'PHP References',
'language' => 'en',
'build_dir' => __DIR__ . '/../build/php_refs',
'cache_dir' => __DIR__ . '/../build/php_refs/.cache',
]);When language is removed, no errors occurs. But, generally this error occurs when unknown config key is supplied.
I think, it needs to limit what the config possible or handle it more gracefully.
Here is a snippet of the errors.
$ php doctum.phar parse config/doctum.php -vvv
In ErrorHandler.php line 53:
[ErrorException]
Deprecated: Creation of dynamic property Doctum\Doctum::$language is deprecated in phar:///path/to/binary/doctum.phar/src/Doctum.php line 225
Exception trace:
at phar:///path/to/binary/doctum.phar/src/ErrorHandler.php:53
Doctum\ErrorHandler->handle() at phar:///path/to/binary/doctum.phar/src/Doctum.php:225
Doctum\Doctum->__construct() at /path/to/binary/config/doctum.php:15
require() at phar:///path/to/binary/doctum.phar/src/Console/Command/Command.php:501
Doctum\Console\Command\Command->loadDoctum() at phar:///path/to/binary/doctum.phar/src/Console/Command/Command.php:170
Doctum\Console\Command\Command->initialize() at phar:///path/to/binary/doctum.phar/vendor/symfony/console/Command/Command.php:264
Symfony\Component\Console\Command\Command->run() at phar:///path/to/binary/doctum.phar/vendor/symfony/console/Application.php:1040
Symfony\Component\Console\Application->doRunCommand() at phar:///path/to/binary/doctum.phar/vendor/symfony/console/Application.php:301
Symfony\Component\Console\Application->doRun() at phar:///path/to/binary/doctum.phar/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at phar:///path/to/binary/doctum.phar/bin/doctum-binary.php:26
include() at /path/to/binary/doctum.phar:16
parse [--only-version ONLY-VERSION] [--force] [--output-format OUTPUT-FORMAT] [--no-progress] [--ignore-parse-errors] [--print-frozen-errors] [--] <config>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working