Skip to content

Commit bfd343a

Browse files
committed
Changed Parser::__construct argument to Conveyor
1 parent 514c8ef commit bfd343a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/Parsing/Parser.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ class Parser {
3939
*/
4040
protected $state = null;
4141

42-
public function __construct(string $source) {
43-
$this->conveyor = new Conveyor($source);
42+
/**
43+
* @param Conveyor $conveyor Parser conveyor
44+
*/
45+
public function __construct(Conveyor $conveyor) {
4446
$this->state = new FileState();
47+
$this->conveyor = $conveyor;
4548
}
4649

4750
/**

0 commit comments

Comments
 (0)