ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ErrorHandling.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23trait ErrorHandling
24{
25 protected function mergeErrors(array &$errors): \Closure
26 {
27 return function () use (&$errors) {
28 foreach ($errors as $errs) {
29 foreach ($errs() as $e) {
30 yield $e;
31 }
32 }
33 };
34 }
35}