Skip to content

Conversation

@clue
Copy link
Member

@clue clue commented Dec 26, 2016

Appending a backspace to the autoload path never really made any sense, but Composer has always ignored trailing (back)slashes. However, this may (and in fact does) cause issues in other tools that rely on a stricter interpretation according to Composer's documentation. For example, the following does not work due to the trailing backslash:

$loader = require __DIR__ . '/vendor/autoload.php';

$loader->addPsr4('React\\Tests\\Cache\\', 'tests\\');

@clue clue merged commit 2fc39d5 into reactphp:master Jan 10, 2017
@clue clue deleted the autoload branch January 10, 2017 09:56
@clue clue added this to the v0.4.2 milestone Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants