Skip to content

Commit 8a12f1d

Browse files
committed
PhpNamespace::addUse() removed parameter $aliasOut (BC break)
1 parent 628021a commit 8a12f1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PhpGenerator/PhpNamespace.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function getBracketedSyntax(): bool
9090
* @throws InvalidStateException
9191
* @return static
9292
*/
93-
public function addUse(string $name, string $alias = null, string &$aliasOut = null): self
93+
public function addUse(string $name, string $alias = null): self
9494
{
9595
if (
9696
!Helpers::isNamespaceIdentifier($name, true)
@@ -119,7 +119,6 @@ public function addUse(string $name, string $alias = null, string &$aliasOut = n
119119
);
120120
}
121121

122-
$aliasOut = $alias;
123122
$this->aliases[$alias] = $name;
124123
asort($this->aliases);
125124
return $this;

0 commit comments

Comments
 (0)