Skip to content

Commit

Permalink
dat PHP 7.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mringler committed Apr 25, 2024
1 parent 5459ebf commit 98409a4
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,24 +122,24 @@ public function outputGroupDataProvider()
'EmployeeId' => 1,
'Login' => 'le login',
];
$accountPublic = [
...$accountShort,
$accountPublic = array_merge(
$accountShort, [
'Created' => '2024-04-18 11:52:13.533707',
'RoleId' => 5,
'Authenticator' => 'Password',
];
]);

$employeeShort = [
'Id' => 1,
'Name' => 'le name',
];

$employeePublic = [
...$employeeShort,
$employeePublic = array_merge(
$employeeShort, [
'JobTitle' => 'Manger',
'SupervisorId' => null,
'Photo' => null,
];
]);

$role = [
'Id' => 5,
Expand All @@ -158,32 +158,32 @@ public function outputGroupDataProvider()
return [
[
'public',
[
...$accountPublic,
array_merge(
$accountPublic, [
'OgEmployee' => $employeePublic,
'OgRole' => $role,
'OgLogs' => $logsPublic,
],
]),
],
[
'short',
[
...$accountShort,
array_merge(
$accountShort, [
'OgEmployee' => $employeeShort,
],
]),
],
[
[
OgAccount::class => 'public',
OgEmployee::class => 'public',
'default' => 'short',
],
[
...$accountPublic,
array_merge(
$accountPublic, [
'OgEmployee' => $employeePublic,
'OgRole' => $role,
'OgLogs' => $logsShort,
],
]),
],
];
}
Expand Down

0 comments on commit 98409a4

Please sign in to comment.