This will not only call the constructor. The __invoke method will also be called. This is called a “single action controller” => One Controller, One Action. Example
only “solution” was using additional phpdoc annotations for that
example:
/** @see NotaEletronicaCtrl::index() */ // note that it does not matter if method is static or not or of there are arguments
$app->get('', 'NotaEletronicaCtrl:index');