Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix simplifyName with relative path #94

Closed
wants to merge 1 commit into from

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.

None yet

2 participants