Apply code changes after dependency update

This commit is contained in:
2023-12-01 11:06:10 +01:00
parent c5400b78d8
commit a3be3f026d
13 changed files with 85 additions and 98 deletions

View File

@ -6,13 +6,13 @@ use JetBrains\PhpStorm\ArrayShape;
abstract class Solution
{
public static int|string|null $part1ExampleResult = null;
public static null|int|string $part1ExampleResult = null;
public static int|string|null $part1Result = null;
public static null|int|string $part1Result = null;
public static int|string|null $part2ExampleResult = null;
public static null|int|string $part2ExampleResult = null;
public static int|string|null $part2Result = null;
public static null|int|string $part2Result = null;
/**
* @var bool When false, do not apply the `array_filter` function when the data is loaded.
@ -89,12 +89,12 @@ abstract class Solution
public function hasData(): bool
{
return !empty($this->data);
return $this->data !== null && $this->data !== [];
}
public function hasExampleData(): bool
{
return !empty($this->exampleData);
return $this->exampleData !== [];
}
/**