Feature: Support php7.4 (#1354)

* Run CI tests against php 7.4

* Sort composer dependencies

* Remove unused Aws S3 php library

* Pin simplepie dependency to ^1.5

* Pin getid3 dependency to ^1.9

* Pin composer semver to ^3.2

* Pin php-amqplib to ^2.12

* Drop sentry logging support

* Update composer dependencies

* Move propel regenerate to Makefile

* Regenerate propel files with v1.7.0

* Pin propel orm to ^1.7

* Regenerate propel files with v1.7.2

* fix: generator_version in airtime-conf-production.php

* Replace propel/propel1 with jooola/propel1

* Regenerate propel files with v1.7.3-dev

* Fix php7.4 compatibility

Using php-cs-fixer:

    '@PhpCsFixer' => true,
    'concat_space' => ['spacing' => 'one'],
    'ordered_class_elements' => false,
    'yoda_style' => false,
    '@PHP74Migration' => true,
    'assign_null_coalescing_to_coalesce_equal' => false,
    'ternary_to_null_coalescing' => false,
    'heredoc_indentation' => false,
    '@PHP74Migration:risky' => true,
    'declare_strict_types' => false,
    'void_return' => false,
    'use_arrow_functions' => false,

* Fix pre-commit
This commit is contained in:
Jonas L 2021-10-17 17:19:53 +02:00 committed by GitHub
parent 30b3470a06
commit 5e8d8db6e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
90 changed files with 887 additions and 1310 deletions

View file

@ -177,13 +177,13 @@ class Application_Common_DateHelper
}
if (1 === substr_count($p_time, '.')) {
list($hhmmss, $ms) = explode('.', $p_time);
[$hhmmss, $ms] = explode('.', $p_time);
} else {
$hhmmss = $p_time;
$ms = 0;
}
list($hours, $minutes, $seconds) = explode(':', $hhmmss);
[$hours, $minutes, $seconds] = explode(':', $hhmmss);
$totalSeconds = ($hours * 3600 + $minutes * 60 + $seconds) . ".{$ms}";

View file

@ -70,7 +70,7 @@ class Application_Common_OsPath
$paths[0] = DIRECTORY_SEPARATOR . $paths[0];
}
return join(DIRECTORY_SEPARATOR, $paths);
return implode(DIRECTORY_SEPARATOR, $paths);
}
public static function getBaseDir()

View file

@ -61,7 +61,7 @@ class PodcastManager
$episodeList = $service->getPodcastEpisodes($podcast->getDbPodcastId());
$episodes = [];
usort($episodeList, [__CLASS__, '_sortByEpisodePubDate']);
for ($i = 0; $i < sizeof($episodeList); ++$i) {
for ($i = 0; $i < count($episodeList); ++$i) {
$episodeData = $episodeList[$i];
$ts = $podcast->getDbAutoIngestTimestamp();
// If the timestamp for this podcast is empty (no previous episodes have been ingested) and there are no