Skip to content

Commit 0a62960

Browse files
authored
Shorthand arrays
1 parent c6b1963 commit 0a62960

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

tests/modules/core/lib/Auth/Process/PHPTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -127,28 +127,28 @@ public function testThrowExceptionFromFilter()
127127
public function testStateCanBeModified()
128128
{
129129

130-
$config = array(
130+
$config = ]
131131
'code' => '
132132
$attributes["orig2"] = array("value0");
133133
$state["newKey"] = ["newValue"];
134134
$state["Destination"]["attributes"][] = "givenName";
135135
',
136-
);
137-
$request = array(
138-
'Attributes' => array(
139-
'orig1' => array('value1', 'value2'),
140-
'orig2' => array('value3'),
141-
'orig3' => array('value4')
142-
),
136+
];
137+
$request = [
138+
'Attributes' => [
139+
'orig1' => ['value1', 'value2'],
140+
'orig2' => ['value3'],
141+
'orig3' => ['value4']
142+
],
143143
'Destination' => [
144144
'attributes' => ['eduPersonPrincipalName']
145145
],
146-
);
147-
$expected = array(
148-
'Attributes' => array(
149-
'orig1' => array('value1', 'value2'),
150-
'orig2' => array('value0'),
151-
'orig3' => array('value4')
146+
];
147+
$expected = [
148+
'Attributes' => [
149+
'orig1' => ['value1', 'value2'],
150+
'orig2' => ['value0'],
151+
'orig3' => ['value4']
152152
),
153153
'Destination' => [
154154
'attributes' => ['eduPersonPrincipalName', 'givenName']

0 commit comments

Comments
 (0)