comparison vendor/symfony/dependency-injection/Loader/Configurator/DefaultsConfigurator.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
35 * 35 *
36 * @return $this 36 * @return $this
37 * 37 *
38 * @throws InvalidArgumentException when an invalid tag name or attribute is provided 38 * @throws InvalidArgumentException when an invalid tag name or attribute is provided
39 */ 39 */
40 final public function tag($name, array $attributes = array()) 40 final public function tag($name, array $attributes = [])
41 { 41 {
42 if (!is_string($name) || '' === $name) { 42 if (!\is_string($name) || '' === $name) {
43 throw new InvalidArgumentException('The tag name in "_defaults" must be a non-empty string.'); 43 throw new InvalidArgumentException('The tag name in "_defaults" must be a non-empty string.');
44 } 44 }
45 45
46 foreach ($attributes as $attribute => $value) { 46 foreach ($attributes as $attribute => $value) {
47 if (!is_scalar($value) && null !== $value) { 47 if (!is_scalar($value) && null !== $value) {