Skip to content

Commit 85172cc

Browse files
committed
use behavior instead of behaviour
1 parent e373904 commit 85172cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dumper/XmlDumper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,12 @@ private function convertParameters(array $parameters, $type, \DOMElement $parent
290290
} elseif ($value instanceof Reference) {
291291
$element->setAttribute('type', 'service');
292292
$element->setAttribute('id', (string) $value);
293-
$behaviour = $value->getInvalidBehavior();
294-
if (ContainerInterface::NULL_ON_INVALID_REFERENCE == $behaviour) {
293+
$behavior = $value->getInvalidBehavior();
294+
if (ContainerInterface::NULL_ON_INVALID_REFERENCE == $behavior) {
295295
$element->setAttribute('on-invalid', 'null');
296-
} elseif (ContainerInterface::IGNORE_ON_INVALID_REFERENCE == $behaviour) {
296+
} elseif (ContainerInterface::IGNORE_ON_INVALID_REFERENCE == $behavior) {
297297
$element->setAttribute('on-invalid', 'ignore');
298-
} elseif (ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE == $behaviour) {
298+
} elseif (ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE == $behavior) {
299299
$element->setAttribute('on-invalid', 'ignore_uninitialized');
300300
}
301301
} elseif ($value instanceof Definition) {

0 commit comments

Comments
 (0)