Skip to content

Conversation

jderusse
Copy link

  • bug fix
  • BC break? no
  • doc PR: -

This PR fixes a case where simplifyName uses the Relative path instead of ShortName

$namespace = new PhpNamespace('Foo\Bar');
$namespace->addUse('Foo\Bar\Baz\Qux');
echo $namespace->simplifyName('Foo\Bar\Baz\Qux'));

outputs Baz\Qux, instead of 'Qux';

@dg
Copy link
Member

dg commented Oct 15, 2021

Fixed

@dg dg closed this Oct 15, 2021
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.

2 participants