liuch / dmarc-srg

A php parser, viewer and summary report generator for incoming DMARC reports.
GNU General Public License v3.0
223 stars 33 forks source link

Error fix #105

Closed davidkral-com closed 12 months ago

davidkral-com commented 12 months ago

Simple fix for this error:

david@puffin:/data/www/dmarc-srg$ php utils/fetch_reports.php
dmarc-srg [error]: ErrorException: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /data/www/dmarc-srg/classes/Mail/MailMessage.php:111
Stack trace:
#0 /data/www/dmarc-srg/init.php(32): {closure}(8192, 'The behavior of...', '/data/www/virtu...', 111, Array)
#1 /data/www/dmarc-srg/init.php(32): require_once()
#2 [internal function]: {closure}('Liuch\\DmarcSrg\\...')
#3 /data/www/dmarc-srg/classes/Mail/MailBox.php(233): spl_autoload_call('Liuch\\DmarcSrg\\...')
#4 /data/www/dmarc-srg/classes/Sources/MailboxSource.php(81): Liuch\DmarcSrg\Mail\MailBox->message(1)
#5 /data/www/dmarc-srg/classes/Report/ReportFetcher.php(113): Liuch\DmarcSrg\Sources\MailboxSource->current()
#6 /data/www/dmarc-srg/utils/fetch_reports.php(160): Liuch\DmarcSrg\Report\ReportFetcher->fetch()
#7 {main}
Error: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence (-1)

Tested on PHP 7.4.33

liuch commented 12 months ago

Thank you very much!