Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Mar 1, 2024
1 parent c1fa741 commit 841f6d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Transformers/ClassTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function getTypeScriptNode(

protected function resolveTypeByAttribute(
ReflectionClass $reflectionClass,
ReflectionProperty $property = null,
?ReflectionProperty $property = null,
): ?TypeScriptNode {
$subject = $property ?? $reflectionClass;

Expand Down
4 changes: 2 additions & 2 deletions src/Visitor/Visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(

public function before(
Closure $closure,
array $allowedNodes = null,
?array $allowedNodes = null,
): self {
$this->beforeClosures[] = new VisitorClosure($closure, $allowedNodes);

Expand All @@ -35,7 +35,7 @@ public function before(

public function after(
Closure $closure,
array $allowedNodes = null,
?array $allowedNodes = null,
): self {
$this->afterClosures[] = new VisitorClosure($closure, $allowedNodes);

Expand Down
6 changes: 3 additions & 3 deletions tests/Factories/TransformedFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public function __construct(
public static function alias(
string $name,
TypeScriptNode $typeScriptNode,
Reference $reference = null,
array $location = null,
?Reference $reference = null,
?array $location = null,
bool $export = true,
array $references = null,
?array $references = null,
): TransformedFactory {
$reference = $reference ?? new CustomReference(
'factory_alias',
Expand Down

0 comments on commit 841f6d2

Please sign in to comment.