Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 47a2094

Browse files
committed
Typehint array for config
Even if configuration is ArrayObject it is casted to an array after retrieval, so we can have here typehint.
1 parent 434c4c5 commit 47a2094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Container/ApplicationFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,10 @@ private function marshalNoopFinalHandler(ContainerInterface $container)
515515
* Create default FinalHandler with options configured under the key final_handler.options.
516516
*
517517
* @param ContainerInterface $container
518-
* @param array|\ArrayObject $config
518+
* @param array $config
519519
* @return callable|FinalHandler
520520
*/
521-
private function marshalLegacyFinalHandler(ContainerInterface $container, $config)
521+
private function marshalLegacyFinalHandler(ContainerInterface $container, array $config)
522522
{
523523
if ($container->has('Zend\Expressive\FinalHandler')) {
524524
return $container->get('Zend\Expressive\FinalHandler');

0 commit comments

Comments
 (0)