mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-01 14:24:39 +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
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: ['7.3', '7.4']
|
php-versions: ['7.3', '7.4', '8.0', '8.1']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: shivammathur/setup-php@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['post_nr'] = $element->find('div.post-heading a strong', 0)->innertext;
|
||||||
$item['timestamp'] = strtotime(
|
$item['timestamp'] = strtotime(
|
||||||
str_replace(
|
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(
|
current(explode("\t", str_replace("\t\t", "\t", trim(
|
||||||
$element->find('div.post-heading', 0)->plaintext)
|
$element->find('div.post-heading', 0)->plaintext)
|
||||||
)))
|
)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue