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

Doesn't work when autoload is specified as an array #159

Open
Dan0sz opened this issue Feb 24, 2025 · 0 comments
Open

Doesn't work when autoload is specified as an array #159

Dan0sz opened this issue Feb 24, 2025 · 0 comments

Comments

@Dan0sz
Copy link

Dan0sz commented Feb 24, 2025

In this package, the autoload section in composer.json is defined as an array:

  "autoload": {
    "psr-4": {
      "TOC\\": ["src", "tests"]
    }
  },

when trying to run mozart compose, the following errors occurs:

PHP Warning:  Array to string conversion in /vendor/coenjacobs/mozart/src/Mover.php on line 122

In Finder.php line 592:
                                                                                                                        
  The "/vendor/caseyamcl/toc/Array" directory does not exist.

I know this is an edgecase, so I fixed it manually now, but it would be nice if it would at least throw a human-readable error when this happens. Or, specify it in our mozart which directory it should choose?

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

1 participant