<?php 'handler' => $routeData['handler'],
'method' => $routeData['method'],
'middleware' => array_merge_recursive($parentData['middleware'] ?? [], $routeData['middleware']),
'fields' => array_merge($parentData['fields'] ?? [], $routeData['fields']),
'parameterTypes' => array_merge_recursive($parentData['parameterTypes'] ?? [], $routeData['parameterTypes']),
];
}