mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 02:24:35 +02:00
chore: bump required php version to 7.4 (#2838)
* chore: require min php 7.4
* Revert "feat: backport php 7.3 functions (#2803)"
This reverts commit 6df5a4bc14
.
* [BandcampDaily] use array_key_first
* hard fail on php versions below 7.4
* update phpcompat linter
This commit is contained in:
parent
192dc4dae2
commit
8365a7a34d
8 changed files with 10 additions and 59 deletions
|
@ -148,8 +148,7 @@ class BandcampDailyBridge extends BridgeAbstract {
|
|||
case 'Best of':
|
||||
case 'Genres':
|
||||
case 'Franchises':
|
||||
// TODO Switch to array_key_first once php >= 7.3
|
||||
$contentKey = key(self::PARAMETERS[$this->queriedContext]);
|
||||
$contentKey = array_key_first(self::PARAMETERS[$this->queriedContext]);
|
||||
$contentValues = array_flip(self::PARAMETERS[$this->queriedContext][$contentKey]['values']);
|
||||
|
||||
return $contentValues[$this->getInput($contentKey)] . ' - Bandcamp Daily';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue