You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Installando il modulo ed eseguendo la creazione del file xml viene indicato un errore all'implementazione della Countable e della Iterator in alcune classi del progetto deved. Controllando il codice sorgente del file ad esempio DettaglioLinee.php si nota che non vengono dichiarate esplicitamente i valori di ritorno.
To Reproduce
Usare le classi sotto >= PHP8.0
Expected behavior
Evitare l'errore seguente: Fatal error: During inheritance of Countable: Uncaught Exception: Deprecated Functionality: Return type of Deved\FatturaElettronica\FatturaElettronica\FatturaElettronicaBody\DatiBeniServizi\DettaglioLinee::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/deved/fattura-elettronica/src/FatturaElettronica/FatturaElettronicaBody/DatiBeniServizi/DettaglioLinee.php on line 125
Una soluzione alternativa potrebbe essere evitare il braking changes con l'impostazione della versione di PHP nel file di composer.
grazie
The text was updated successfully, but these errors were encountered:
shinesoftware
pushed a commit
to shinesoftware/fattura-elettronica
that referenced
this issue
Oct 26, 2022
Ho avuto anche io lo stesso problema, in locale, con PHP 8.1. In attesa del fix, ho temporaneamente utilizzato l'operatore @ per la soppressione degli errori.
Describe the bug
Installando il modulo ed eseguendo la creazione del file xml viene indicato un errore all'implementazione della Countable e della Iterator in alcune classi del progetto deved. Controllando il codice sorgente del file ad esempio DettaglioLinee.php si nota che non vengono dichiarate esplicitamente i valori di ritorno.
To Reproduce
Usare le classi sotto >= PHP8.0
Expected behavior
Evitare l'errore seguente:
Fatal error: During inheritance of Countable: Uncaught Exception: Deprecated Functionality: Return type of Deved\FatturaElettronica\FatturaElettronica\FatturaElettronicaBody\DatiBeniServizi\DettaglioLinee::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/deved/fattura-elettronica/src/FatturaElettronica/FatturaElettronicaBody/DatiBeniServizi/DettaglioLinee.php on line 125
Una soluzione alternativa potrebbe essere evitare il braking changes con l'impostazione della versione di PHP nel file di composer.
grazie
The text was updated successfully, but these errors were encountered: