Skip to content

Fix simplifyName with relative path#94

Closed
jderusse wants to merge 1 commit intonette:masterfrom
jderusse:relative-short
Closed

Fix simplifyName with relative path#94
jderusse wants to merge 1 commit intonette:masterfrom
jderusse:relative-short

Conversation

@jderusse
Copy link
Copy Markdown

  • 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
Copy Markdown
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