Skip to content

Commit

Permalink
Fix misc
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Nov 17, 2023
1 parent 1e34b80 commit 07fca78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/Core/Generator/Builder/AbstractAstBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,7 @@ protected function getParser(): Parser

protected function getLexer(): Emulative
{
return $this->lexer ??= new Emulative(
[
'usedAttributes' => [
'comments',
'startLine',
'endLine',
'startTokenPos',
'endTokenPos',
],
]
);
return $this->lexer ??= new Emulative();
}

public function createNodeFactory(): BuilderFactory
Expand Down Expand Up @@ -91,7 +81,7 @@ protected function convertCode(

$parser = $this->getParser();
$oldAst = $parser->parse($code);
$oldTokens = $this->getLexer()->getTokens();
$oldTokens = $parser->getTokens();

$traverser->addVisitor($this->createVisitor($enterNode, $leaveNode));
$newAst = $traverser->traverse($oldAst);
Expand Down
1 change: 1 addition & 0 deletions src/Core/Generator/Builder/EntityMemberBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ protected function createPropertyStatement(mixed $createColumn): Node\Stmt\Prope

if ($type === '?Chronos') {
$this->addUse(CastNullable::class);
$this->addUse(ServerTimeCast::class);
$prop->setAttribute('fullType', Chronos::class);
$prop->setAttribute('fullType', ServerTimeCast::class);
$prop->attrGroups[] = $this->attributeGroup(
Expand Down
1 change: 1 addition & 0 deletions views/code/form/{% pascal($name) %}Form.php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ declare(strict_types=1);

namespace {% $ns %};

use Windwalker\Form\Attributes\Fieldset;
use Windwalker\Form\Field\HiddenField;
use Windwalker\Form\Attributes\FormDefine;
use Windwalker\Form\Form;
Expand Down

0 comments on commit 07fca78

Please sign in to comment.