[CI] Add support for php 8.0 and 8.1 (#2405)

This commit is contained in:
Eugene Molotov 2022-01-05 04:40:30 +05:00 committed by GitHub
parent 59e77a9e51
commit d0ef8aa71d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: ['7.3', '7.4']
php-versions: ['7.3', '7.4', '8.0', '8.1']
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2

View file

@ -138,7 +138,7 @@ class FlashbackBridge extends BridgeAbstract
$item['post_nr'] = $element->find('div.post-heading a strong', 0)->innertext;
$item['timestamp'] = strtotime(
str_replace(
array('Igår', 'Idag'), array('yesterday', 'today'), \
array('Igår', 'Idag'), array('yesterday', 'today'),
current(explode("\t", str_replace("\t\t", "\t", trim(
$element->find('div.post-heading', 0)->plaintext)
)))