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

Possible error #368

Closed
sjoller opened this issue Aug 6, 2019 · 3 comments
Closed

Possible error #368

sjoller opened this issue Aug 6, 2019 · 3 comments

Comments

@sjoller
Copy link

sjoller commented Aug 6, 2019

Trying to generate docs for my project threw this error, asking me to report it.

PHP Version: 7.2.19-1+0~20190531112637.22+stretch~1.gbp75765b (Linux)
PHPDox Version: 0.12.0-dev
Exception: TypeError (Code: 0)
Location: /mnt/c/Work/ProjectName/htdocs/vendor/theseer/phpdox/src/collector/project/SourceFile.php (Line 74)

Return value of TheSeer\phpDox\Collector\SourceFile::getSource() must be of the type string, null returned

#0 /mnt/c/Work/ProjectName/htdocs/vendor/theseer/phpdox/src/collector/Collector.php(101): TheSeer\phpDox\Collector\Backend\PHPParser->parse()
#1 /mnt/c/Work/ProjectName/htdocs/vendor/theseer/phpdox/src/collector/Collector.php(71): TheSeer\phpDox\Collector\Collector->processFile()
#2 /mnt/c/Work/ProjectName/htdocs/vendor/theseer/phpdox/src/Application.php(88): TheSeer\phpDox\Collector\Collector->run()
#3 /mnt/c/Work/ProjectName/htdocs/vendor/theseer/phpdox/src/CLI.php(120): TheSeer\phpDox\Application->runCollector()
#4 /mnt/c/Work/ProjectName/htdocs/vendor/theseer/phpdox/phpdox(68): TheSeer\phpDox\CLI->run()
@theseer
Copy link
Owner

theseer commented Aug 6, 2019

Given the line and file this happens at, it should be a duplicate of #356.

Even though you seem to use a -dev release, can you verify that you are using current master? Because that would mean my change didn't actually catch this case. I'd expect an exception rather than a type error.

@sjoller
Copy link
Author

sjoller commented Aug 7, 2019

I'm on 0.12.0 - I required it with composer (though with --dev option).

I looked at the source, and the changes from ab50417 are not present, but they're not present either, if I just browse the master on Github...

@theseer
Copy link
Owner

theseer commented Apr 14, 2020

I'll close this in favor of #397

@theseer theseer closed this as completed Apr 14, 2020
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