Small fixes
This commit is contained in:
parent
b808c530cc
commit
5ef6984e88
5
.phpactor.json
Normal file
5
.phpactor.json
Normal 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
|
||||
}
|
@ -2,9 +2,6 @@
|
||||
|
||||
version: '3'
|
||||
|
||||
vars:
|
||||
PHP_IMAGE: php:8.1
|
||||
|
||||
tasks:
|
||||
default:
|
||||
cmds:
|
||||
|
@ -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'] !== [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user