Skip to content

Commit

Permalink
Merge tag v2.4.0 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Dec 6, 2024
1 parent 36a8b7f commit 5c82d40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.3.x-dev",
"dev-develop": "2.4.x-dev"
"dev-master": "2.4.x-dev",
"dev-develop": "2.5.x-dev"
}
}
}
4 changes: 2 additions & 2 deletions src/DeclarationGeneratorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
use RZ\Roadiz\Typescript\Declaration\Generators\ScalarFieldGenerator;
use Symfony\Component\HttpFoundation\ParameterBag;

final class DeclarationGeneratorFactory
final readonly class DeclarationGeneratorFactory
{
public function __construct(private readonly ParameterBag $nodeTypesBag)
public function __construct(private ParameterBag $nodeTypesBag)
{
}

Expand Down
9 changes: 2 additions & 7 deletions src/Generators/AbstractFieldGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,10 @@ abstract class AbstractFieldGenerator
// Four spaces
public const INDENTATION_MARK = ' ';

protected NodeTypeFieldInterface $field;
protected ParameterBag $nodeTypesBag;

public function __construct(
NodeTypeFieldInterface $field,
ParameterBag $nodeTypesBag,
protected readonly NodeTypeFieldInterface $field,
protected readonly ParameterBag $nodeTypesBag,
) {
$this->field = $field;
$this->nodeTypesBag = $nodeTypesBag;
}

protected function getNullableAssertion(): string
Expand Down

0 comments on commit 5c82d40

Please sign in to comment.