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:
parent
30b3470a06
commit
5e8d8db6e9
90 changed files with 887 additions and 1310 deletions
|
@ -234,7 +234,7 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
|
|||
} elseif ($formData['add_show_repeat_type'] == 2 && $formData['add_show_monthly_repeat_type'] == 2) {
|
||||
$interval = 'P1M';
|
||||
} elseif ($formData['add_show_repeat_type'] == 2 && $formData['add_show_monthly_repeat_type'] == 3) {
|
||||
list($weekNumberOfMonth, $dayOfWeek) =
|
||||
[$weekNumberOfMonth, $dayOfWeek] =
|
||||
Application_Service_ShowService::getMonthlyWeeklyRepeatInterval(
|
||||
new DateTime($start_time, $showTimezone)
|
||||
);
|
||||
|
|
|
@ -59,7 +59,7 @@ class Application_Form_Player extends Zend_Form_SubForm
|
|||
break;
|
||||
}
|
||||
|
||||
$streamURL->setAttrib('numberOfEnabledStreams', sizeof($urlOptions) - $opusStreamCount);
|
||||
$streamURL->setAttrib('numberOfEnabledStreams', count($urlOptions) - $opusStreamCount);
|
||||
$streamURL->removeDecorator('label');
|
||||
$this->addElement($streamURL);
|
||||
|
||||
|
|
|
@ -913,7 +913,7 @@ class Application_Form_SmartBlockCriteria extends Zend_Form_SubForm
|
|||
$isValid = false;
|
||||
}
|
||||
// length check
|
||||
if ($d['sp_criteria_value'] >= pow(2, 31)) {
|
||||
if ($d['sp_criteria_value'] >= 2 ** 31) {
|
||||
$element->addError(_('The value should be less then 2147483648'));
|
||||
$isValid = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue