Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rare cases where "functions.php" is included twice leads to error #201

@mnapoli

Description

@mnapoli
  • if a tool requires PHP-DI and gets installed globally (e.g. composer global install …)
  • if PHPUnit is run from Composer global install
  • if PHPUnit requires the local vendor/autoload.php from Composer (which also contains PHP-DI)

then src/DI/functions.php gets included twice…

That's a really minor bug but to avoid any troubles to users functions should be declared (re-declared) only if they don't already exist.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions