Skip to content

Commit

Permalink
Merge pull request #252 from localheinz/feature/split
Browse files Browse the repository at this point in the history
Enhancement: Introduce temporary variable
  • Loading branch information
Simon Mönch authored Aug 19, 2019
2 parents 4988607 + 86c9b63 commit 513b592
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AstRunner/AstMap/AstFileReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ public function __construct(string $filepath)

public function addClassReference(string $className): AstClassReference
{
return $this->astClassReferences[] = new AstClassReference($className, $this);
$astClassReference = new AstClassReference($className, $this);

$this->astClassReferences[] = $astClassReference;

return $astClassReference;
}

public function getFilepath(): string
Expand Down

0 comments on commit 513b592

Please sign in to comment.