public function toArray() { $result =
[ 'hasErrors' => false,
'hasWarnings' => false,
'checks' =>
[],
'phpVersionNotSupported' => false,
];
$checks =
[];
foreach ($this->
runChecks() as $requirement) { $check =
[];
// Skip database checks because we don't have a db connection yet
if ((bool) $requirement->database
) { continue;
} $check['name'
] =
(string) $requirement->name;
$check['group'
] =
(string) $requirement->group;
$check['notice'
] =
(string) $requirement->notice;
$check['required'
] =
(string) $requirement->required;