Skip to content

Commit 0ecba9a

Browse files
committed
Don't use the short array notation
1 parent 2ae9c65 commit 0ecba9a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/var_dumper.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,15 @@ Outside a Symfony application, use the :class:`Symfony\\Component\\VarDumper\\Du
164164

165165
$cloner = new VarCloner();
166166
$fallbackDumper = \in_array(\PHP_SAPI, array('cli', 'phpdbg')) ? new CliDumper() : new HtmlDumper();
167-
$dumper = new ServerDumper('tcp://127.0.0.1:9912', $fallbackDumper, [
167+
$dumper = new ServerDumper('tcp://127.0.0.1:9912', $fallbackDumper, array(
168168
'cli' => new CliContextProvider(),
169169
'source' => new SourceContextProvider(),
170-
]);
170+
));
171171

172172
VarDumper::setHandler(function ($var) use ($cloner, $dumper) {
173173
$dumper->dump($cloner->cloneVar($var));
174174
});
175175

176-
177176
.. note::
178177

179178
The second argument of :class:`Symfony\\Component\\VarDumper\\Dumper\\ServerDumper`

0 commit comments

Comments
 (0)