Having the same issue under WP 6.0, Legenda v4.3.2 and Legenda Core plugin 1.0.4.
Of course, it’s a fatal error under PHP 8.x which my host is requiring later this summer.