Skip to content

Commit

Permalink
Fixed the latest rules PhpCsFixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Smet committed Jul 8, 2023
1 parent 1991450 commit 388ab6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Type/AbstractType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstract class AbstractType
protected Parser $parser;
protected Formatter $formatter;

public function __construct(float|int|string|array $value = null, ?AbstractConfig $config = null)
public function __construct(float|int|string|array|null $value = null, ?AbstractConfig $config = null)
{
$this->prepareObject($value, $config);
}
Expand Down Expand Up @@ -655,7 +655,7 @@ protected function modifier(float $newValue, ?string $logMessage = null, bool $g
return $this;
}

private function prepareObject(float|int|string|array $value = null, ?AbstractConfig $config = null): void
private function prepareObject(float|int|string|array|null $value = null, ?AbstractConfig $config = null): void
{
// $this->type = Str::class \strtolower(\str_replace(__NAMESPACE__ . '\\', '', static::class));
$this->type = Str::getClassName(static::class, true) ?? 'UndefinedType';
Expand Down

0 comments on commit 388ab6b

Please sign in to comment.