Are you sure the assignment to $key is correct as $element->getName() targeting Nip\Form\Elements\AbstractElement::getName() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
The type Nip\Logger\Exception was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. excluded_paths:["lib/*"],
you can move it to the dependency path list as follows:
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.