Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error during project initialization from Reflection #106

Closed
joshbruce opened this issue Jul 18, 2017 · 3 comments
Closed

Fatal error during project initialization from Reflection #106

joshbruce opened this issue Jul 18, 2017 · 3 comments
Assignees

Comments

@joshbruce
Copy link

Let me know if something else would be helpful. I'm not familiar with this version of the library; therefore, not sure how much I can contribute directly to the solution at this time. I do apologize.

Argument 3 passed to phpDocumentor\Reflection\DocBlock::__construct() must be an instance of phpDocumentor\Reflection\DocBlock\Location, array given, called in vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php on line 103 and defined

vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php:103
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/DocBlock.php:84
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/AbstractFactory.php:42
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/AbstractFactory.php:57
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/Trait_.php:56
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/AbstractFactory.php:28
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/File.php:155
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/File.php:151
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/File.php:117
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/File.php:60
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/File.php:92
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/AbstractFactory.php:28
vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/ProjectFactory.php:79

Files array passed.

array(14) {
  [0] =>
  class phpDocumentor\Reflection\File\LocalFile#41 (1) {
    private $path =>
    string(105) "app_docs/documenter-php/v0-0-0/src/File.php"
  }
  [1] =>
  class phpDocumentor\Reflection\File\LocalFile#40 (1) {
    private $path =>
    string(118) "app_docs/documenter-php/v0-0-0/src/Helpers/Macroable.php"
  }
  [2] =>
  class phpDocumentor\Reflection\File\LocalFile#45 (1) {
    private $path =>
    string(122) "app_docs/documenter-php/v0-0-0/src/Helpers/StringHelpers.php"
  }
  [3] =>
  class phpDocumentor\Reflection\File\LocalFile#46 (1) {
    private $path =>
    string(127) "app_docs/documenter-php/v0-0-0/src/Interfaces/HasDeclarations.php"
  }
  [4] =>
  class phpDocumentor\Reflection\File\LocalFile#47 (1) {
    private $path =>
    string(108) "app_docs/documenter-php/v0-0-0/src/Project.php"
  }
  [5] =>
  class phpDocumentor\Reflection\File\LocalFile#42 (1) {
    private $path =>
    string(122) "app_docs/documenter-php/v0-0-0/src/ProjectObjects/Class_.php"
  }
  [6] =>
  class phpDocumentor\Reflection\File\LocalFile#49 (1) {
    private $path =>
    string(127) "app_docs/documenter-php/v0-0-0/src/ProjectObjects/ClassMethod.php"
  }
  [7] =>
  class phpDocumentor\Reflection\File\LocalFile#50 (1) {
    private $path =>
    string(126) "app_docs/documenter-php/v0-0-0/src/ProjectObjects/Interface_.php"
  }
  [8] =>
  class phpDocumentor\Reflection\File\LocalFile#51 (1) {
    private $path =>
    string(136) "app_docs/documenter-php/v0-0-0/src/ProjectObjects/SubObjects/Parameter.php"
  }
  [9] =>
  class phpDocumentor\Reflection\File\LocalFile#55 (1) {
    private $path =>
    string(135) "app_docs/documenter-php/v0-0-0/src/ProjectObjects/SubObjects/TypeHint.php"
  }
  [10] =>
  class phpDocumentor\Reflection\File\LocalFile#56 (1) {
    private $path =>
    string(122) "app_docs/documenter-php/v0-0-0/src/ProjectObjects/Trait_.php"
  }
  [11] =>
  class phpDocumentor\Reflection\File\LocalFile#52 (1) {
    private $path =>
    string(118) "app_docs/documenter-php/v0-0-0/src/Traits/DocBlocked.php"
  }
  [12] =>
  class phpDocumentor\Reflection\File\LocalFile#54 (1) {
    private $path =>
    string(116) "app_docs/documenter-php/v0-0-0/src/Traits/Gettable.php"
  }
  [13] =>
  class phpDocumentor\Reflection\File\LocalFile#53 (1) {
    private $path =>
    string(118) "app_docs/documenter-php/v0-0-0/src/Traits/Namespaced.php"
  }
}
@jaapio
Copy link
Member

jaapio commented Aug 4, 2017

Hi Josh,
It looks like this is some issue with missmatched versions? It is some time ago that I've worked on the reflection library. It would help me if you can could provide your composer.lock file or only the parts that contain the phpdocumentor libraries. So I can have a look which exact commit sha's are in there.

@jaapio
Copy link
Member

jaapio commented Nov 27, 2017

Please add the requested information. I was not able to reproduce this with the latest version of this component.
Will close this issue within a few weeks when no feedback is provided.

@joshbruce
Copy link
Author

@jaapio: Sorry for the delay. I've been working on another assignment. I believe the problem is sorted, but cannot verify completely at this time. I have been using the other libraries without much in the way of a hiccup, but have not attempted to build another project again.

Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants