« Previous | Next » 

Revision b7270466

IDb7270466399a8fe0b6a39259f55e47ad716ae210
Parent a884025d
Child 288e0aae, 13ed99cb

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