Skip to content

Commit

Permalink
Added DataFile inheritance to ArrayFile
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Mar 1, 2023
1 parent 1e6b3b6 commit 888053d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/ArrayFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Winter\LaravelConfigWriter\Parser\PHPFunction;
use Winter\LaravelConfigWriter\Printer\ArrayPrinter;

class ArrayFile implements DataFileInterface
class ArrayFile extends DataFile implements DataFileInterface
{
const SORT_ASC = 'asc';
const SORT_DESC = 'desc';
Expand Down Expand Up @@ -443,14 +443,4 @@ public function render(): string
{
return $this->printer->render($this->ast, $this->lexer) . "\n";
}

/**
* Get currently loaded AST
*
* @return Stmt[]|null
*/
public function getAst()
{
return $this->ast;
}
}

0 comments on commit 888053d

Please sign in to comment.