Skip to content

Critical Error: A compilation unit should contain at least one token #682

@andrey-tech

Description

@andrey-tech
  • PHP Depend version: 2.15.0
  • PHP Version: 7.4.33
  • Installation type: composer
  • Operating System / Distribution & Version: GNU/Linux Ubuntu 5.15.0-83-generic x86_64

Current Behavior

Critical error while "parsing source files":

Critical error:
===============
A compilation unit should contain at least one token

Expected Behavior

No errors while parsing source files (version 2.14.0).

Steps To Reproduce:

vendor/bin/pdepend --summary-xml=./summary.xml src

Checks before submitting

  • [✓ ] Be sure that there isn't already an issue about this. See: Issues list
  • [✓ ] Be sure that there isn't already a pull request about this. See: Pull requests
  • [✓ ] I have added every step to reproduce the bug.
  • [✓ ] If possible I added relevant code examples.
  • [✓ ] This issue is about 1 bug and nothing more.
  • [ ✓] The issue has a descriptive title. For example: "Default value is not available in AST when it's an array".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions