src/PHPDish/Bundle/ThemeBundle/Theming/ThemeFinder.php
private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays): array
    {
        return array_map(function (array $authorArray) {
            $author = new ThemeAuthor();

            $author->setName($authorArray['name'] ?? null);
            $author->setEmail($authorArray['email'] ?? null);
            $author->setHomepage($authorArray['homepage'] ?? null);
            $author->setRole($authorArray['role'] ?? null);

            return $author;
        }, $authorsArrays);
    }
private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays): array
    {
        return array_map(function (array $authorArray) {
            $author = new ThemeAuthor();

            $author->setName($authorArray['name'] ?? null);
            $author->setEmail($authorArray['email'] ?? null);
            $author->setHomepage($authorArray['homepage'] ?? null);
            $author->setRole($authorArray['role'] ?? null);

            return $author;
        }, $authorsArrays);
    }
@param array $authorsArrays

@return array|ThemeAuthor[]