« Previous | Next » 

Revision a095526d

IDa095526d9b8ef582e8b29cf5b6654e177e7aef1f
Parent 7a8553fe
Child 90048d04

Added by Martin Helmich almost 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