etruel / fakturo

1 stars 6 forks source link

PDF Reports PHP warnings and deprecated #35

Closed manuelge closed 6 months ago

manuelge commented 1 year ago

When trying to print a report as a PDF it generates these warnings and php deprecated:

PHP Warning: Undefined array key "letter_from" in /var/www/clients/client1/web58/web/wp-content/plugins/fakturo/includes/reports/stock_products.php on line 750

PHP Deprecated: Return type of Dompdf\Frame\FrameTreeList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/clients/client1/web58/web/wp-content/plugins/fakturo/includes/libs/dompdf/src/Frame/FrameTreeList.php on line 31

PHP Deprecated: Return type of Dompdf\Frame\FrameTreeIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/clients/client1/web58/web/wp-content/plugins/fakturo/includes/libs/dompdf/src/Frame/FrameTreeIterator.php on line 69

PHP Deprecated: Return type of Dompdf\Frame\FrameTreeIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/clients/client1/web58/web/wp-content/plugins/fakturo/includes/libs/dompdf/src/Frame/FrameTreeIterator.php on line 77

PHP Deprecated: Return type of Dompdf\Frame\FrameTreeIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/clients/client1/web58/web/wp-content/plugins/fakturo/includes/libs/dompdf/src/Frame/FrameTreeIterator.php on line 61

PHP Deprecated: Return type of Dompdf\Frame\FrameTreeIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/clients/client1/web58/web/wp-content/plugins/fakturo/includes/libs/dompdf/src/Frame/FrameTreeIterator.php on line 53

PHP Deprecated: Return type of Dompdf\Frame\FrameTreeIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/clients/client1/web58/web/wp-content/plugins/fakturo/includes/libs/dompdf/src/Frame/FrameTreeIterator.php on line 44