clemens-tolboom / uml-generator-php

http://clemens-tolboom.github.io/uml-generator-php/
MIT License
44 stars 5 forks source link

Traits (for drupal) causes exceptions #64

Open clemens-tolboom opened 10 years ago

clemens-tolboom commented 10 years ago

When running on a Drupal 8 codebase I get a few exception all to do with traits like

core/modules/config/src/Tests/SchemaCheckTestTrait.json core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.json core/lib/Drupal/Core/Plugin/PluginDependencyTrait.json

core/modules/config/src/Tests/SchemaCheckTestTrait.json
PHP Warning:  Illegal string offset 'type' in /Users/clemens/lib/uml-generator-php/src/OopToDot.php on line 180
PHP Stack trace:
PHP   1. {main}() /Users/clemens/lib/uml-generator-php/bin/uml-generator-php:0
PHP   2. Symfony\Component\Console\Application->run() /Users/clemens/lib/uml-generator-php/bin/uml-generator-php:14
PHP   3. Symfony\Component\Console\Application->doRun() /Users/clemens/lib/uml-generator-php/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP   4. Symfony\Component\Console\Application->doRunCommand() /Users/clemens/lib/uml-generator-php/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP   5. Symfony\Component\Console\Command\Command->run() /Users/clemens/lib/uml-generator-php/vendor/symfony/console/Symfony/Component/Console/Application.php:889
PHP   6. UmlGeneratorPhp\Command\RunCommand->execute() /Users/clemens/lib/uml-generator-php/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
PHP   7. Symfony\Component\Console\Command\Command->run() /Users/clemens/lib/uml-generator-php/src/Command/RunCommand.php:73
PHP   8. UmlGeneratorPhp\Command\DotCommand->execute() /Users/clemens/lib/uml-generator-php/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
PHP   9. UmlGeneratorPhp\OopToDot->getClassDiagram() /Users/clemens/lib/uml-generator-php/src/Command/DotCommand.php:105
PHP  10. array_filter() /Users/clemens/lib/uml-generator-php/src/OopToDot.php:181
PHP  11. UmlGeneratorPhp\OopToDot->UmlGeneratorPhp\{closure}() /Users/clemens/lib/uml-generator-php/src/OopToDot.php:181