Skip to content

Commit ea2d6cd

Browse files
committed
CS
1 parent 8ca5bb2 commit ea2d6cd

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Kore/DataObject/DataObject.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ class DataObject
88
* Generic constructor
99
*
1010
* @param array $values
11-
* @param bool $ignoreAdditionalAttributes (optional) When set to true, additional attributes in $values will be ignored while construction. Defaults to false
11+
* @param bool $ignoreAdditionalAttributes (optional) When set to true,
12+
* additional attributes in $values will be ignored while construction.
13+
* Defaults to false
1214
* @return void
1315
*/
1416
public function __construct(array $values = array(), bool $ignoreAdditionalAttributes = false)
@@ -17,7 +19,9 @@ public function __construct(array $values = array(), bool $ignoreAdditionalAttri
1719
if ($ignoreAdditionalAttributes) {
1820
try {
1921
$this->$name = $value;
20-
} catch (\OutOfRangeException $e) {}
22+
} catch (\OutOfRangeException $e) {
23+
// Ignore this property
24+
}
2125
} else {
2226
$this->$name = $value;
2327
}

0 commit comments

Comments
 (0)