comparison vendor/symfony/console/Helper/HelperSet.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
22 class HelperSet implements \IteratorAggregate 22 class HelperSet implements \IteratorAggregate
23 { 23 {
24 /** 24 /**
25 * @var Helper[] 25 * @var Helper[]
26 */ 26 */
27 private $helpers = array(); 27 private $helpers = [];
28 private $command; 28 private $command;
29 29
30 /** 30 /**
31 * @param Helper[] $helpers An array of helper 31 * @param Helper[] $helpers An array of helper
32 */ 32 */
33 public function __construct(array $helpers = array()) 33 public function __construct(array $helpers = [])
34 { 34 {
35 foreach ($helpers as $alias => $helper) { 35 foreach ($helpers as $alias => $helper) {
36 $this->set($helper, is_int($alias) ? null : $alias); 36 $this->set($helper, \is_int($alias) ? null : $alias);
37 } 37 }
38 } 38 }
39 39
40 /** 40 /**
41 * Sets a helper. 41 * Sets a helper.