Skip to content

Conversation

yannsuty
Copy link

Correctif réalisé avec Guillaume Alabré

$i += 2;
$as = $tokens[$i][1];
} else {
$as = substr($path, strrpos($path,"\\") + 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just thinking, what happens in case there is no \, like for instance:

<?php

use InvalidArgumentException;

class MyClass {
  public function __construct(InvalidArgumentException $exception) {}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants