« Previous | Next » 

Revision 009ec987

ID009ec9870102f4e85c74f8318e95991b40fcd4e5
Parent 5eb00169
Child fe3122cc, 9fbc677b

Added by Martin Helmich about 7 years ago

[BUGFIX] PHP Notice when multiple namespace roots are set

The ``Package`` class triggers a PHP Notice when a composer manifest
contains several search paths for the same prefix (see [1])::

{
"autoload": {
"psr-0": {
"Foo\\": ["src/", "tests/"]
}
}
}

This commit changes the behaviour to using the first path as class
path when multiple paths are defined.

[1] https://getcomposer.org/doc/04-schema.md#psr-0

Resolves: FLOW-94
Change-Id: If33ba0cb4b3dd22c8543e2ee5f881967f342c372
Releases: master, 2.3, 2.2, 2.1

  • added
  • modified
  • copied
  • renamed
  • deleted