Small fixes

This commit is contained in:
Tristan 2023-12-03 13:57:16 +01:00
parent b808c530cc
commit 5ef6984e88
Signed by: trizz
SSH Key Fingerprint: SHA256:Xsd2dTN+ZC3OZWfvuKIDMQ/1lWicuINSEPgRQw/CJT8
3 changed files with 7 additions and 4 deletions

5
.phpactor.json Normal file
View File

@ -0,0 +1,5 @@
{
"$schema": "/Users/t.siebers/.local/share/nvim/mason/packages/phpactor/phpactor.schema.json",
"language_server_phpstan.enabled": true,
"language_server_php_cs_fixer.enabled": true
}

View File

@ -2,9 +2,6 @@
version: '3'
vars:
PHP_IMAGE: php:8.1
tasks:
default:
cmds:

View File

@ -29,6 +29,7 @@ abstract class Solution
/**
* @var array<array<int, string>|null> The example data to use.
*/
#[ArrayShape(['part1' => 'array|null', 'part2' => 'array|null', 'global' => 'array|null'])]
public array $exampleData = [
'global' => null,
'part1' => null,
@ -102,7 +103,7 @@ abstract class Solution
public function hasExampleData(): bool
{
return $this->exampleData !== [];
return $this->exampleData['global'] !== [];
}
/**