- Quickfix on changes made to add Attributes

This commit is contained in:
Dave M. 2023-02-01 16:36:27 +00:00
parent f20839e5bf
commit 2998562d4e
1 changed files with 2 additions and 4 deletions

View File

@ -80,9 +80,7 @@ class TaskFetcher {
# Should generate an equivalent of Ulmus's object reflection here ! # Should generate an equivalent of Ulmus's object reflection here !
$objectResolver = new ObjectResolver($class, true, true, false, true); $objectResolver = new ObjectResolver($class, true, true, false, true);
$taskList = $objectResolver->getAnnotationListFromClassname( $this->annotations['method'], false ); foreach($objectResolver->getAnnotationListFromClassname( $this->annotations['method'], false ) as $func => $cronard) {
foreach($taskList as $func => $cronard) {
foreach($cronard as $task) { foreach($cronard as $task) {
$list[] = [ 'class' => $class, 'method' => $func, 'annotation' => $task ]; $list[] = [ 'class' => $class, 'method' => $func, 'annotation' => $task ];
} }
@ -90,7 +88,7 @@ class TaskFetcher {
} }
return $list; return $list ?? [];
}); });
} }