mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 09:35:28 +03:00
[CI] Add support for php 8.0 and 8.1 (#2405)
This commit is contained in:
parent
59e77a9e51
commit
d0ef8aa71d
2 changed files with 2 additions and 2 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
)))
|
||||
|
|
Loading…
Reference in a new issue