From 9192aaa2bb2dada470e03537493160d9b14a42f4 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 13 Apr 2024 14:36:31 +0200
Subject: [PATCH] fix(deps): update dependency friendsofphp/php-cs-fixer to
<3.53.1 (#2972)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[friendsofphp/php-cs-fixer](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer)
| `<3.51.1` -> `<3.53.1` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
PHP-CS-Fixer/PHP-CS-Fixer (friendsofphp/php-cs-fixer)
###
[`v3.53.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3530)
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.52.1...v3.53.0)
- chore: Use `list` over `array` in more places
([#7905](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7905))
- CI: allow for self-approvals for maintainers
([#7921](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7921))
- CI: Improve Infection setup
([#7913](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7913))
- CI: no need to trigger enable auto-merge when self-approve
([#7929](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7929))
- DX: reduce `array_filter` function usages
([#7923](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7923))
- DX: remove duplicated character from `trim` call
([#7930](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7930))
- DX: update actions producing warnings
([#7925](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7925))
- DX: update actions producing warnings
([#7928](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7928))
- DX: update `phpstan/phpstan-strict-rules`
([#7924](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7924))
- feat: Add trailing comma in multiline to PER-CS 2.0
([#7916](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7916))
- feat: Introduce `AttributeAnalysis`
([#7909](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7909))
- feat: `@PHP84Migration` introduction
([#7774](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7774))
- fix: Constant invocation detected in typed constants
([#7892](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7892))
- fix: `PhpdocArrayTypeFixer` - JIT stack limit exhausted
([#7895](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7895))
- test: Introduce Infection for mutation tests
([#7874](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7874))
###
[`v3.52.1`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3521)
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.52.0...v3.52.1)
- fix: StatementIndentationFixer - do not crash on ternary operator in
class property
([#7899](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7899))
- fix: `PhpCsFixer\Tokenizer\Tokens::setSize` return type
([#7900](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7900))
###
[`v3.52.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3520)
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.51.0...v3.52.0)
- chore: fix PHP 8.4 deprecations
([#7894](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7894))
- chore: fix PHPStan 1.10.60 issues
([#7873](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7873))
- chore: list over array in more places
([#7876](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7876))
- chore: replace template with variable in Preg class
([#7882](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7882))
- chore: update PHPStan
([#7871](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7871))
- depr: `nullable_type_declaration_for_default_null_value` - deprecate
option that is against `@PHP84Migration`
([#7872](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7872))
- docs: Fix typo
([#7889](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7889))
- feat: Add support for callable template in PHPDoc parser
([#7084](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7084))
- feat: Add `array_indentation` to `PER-CS2.0` ruleset
([#7881](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7881))
- feat: `@Symfony:risky` - add `no_unreachable_default_argument_value`
([#7863](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7863))
- feat: `PhpCsFixer` ruleset - enable
`nullable_type_declaration_for_default_null_value`
([#7870](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7870))
- fix: Constant invocation detected in DNF types
([#7869](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7869))
- fix: Correctly indent multiline constants and properties
([#7875](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7875))
- fix: `no_useless_concat_operator` - do not break variable
([#7827](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7827))
- fix: `TokensAnalyzer` - handle unary operator in arrow functions
([#7862](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7862))
- fix: `TypeExpression` - fix "JIT stack limit exhausted" error
([#7843](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7843))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo
---
legacy/application/common/HTTPHelper.php | 2 +-
legacy/application/logging/AirtimeLog.php | 2 +-
legacy/application/models/airtime/CcShow.php | 6 +++---
legacy/application/models/airtime/CcShowInstances.php | 2 +-
.../modules/rest/controllers/RouteController.php | 2 +-
legacy/tools/composer.json | 2 +-
6 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/legacy/application/common/HTTPHelper.php b/legacy/application/common/HTTPHelper.php
index 3047685cc..11780c5ed 100644
--- a/legacy/application/common/HTTPHelper.php
+++ b/legacy/application/common/HTTPHelper.php
@@ -63,7 +63,7 @@ class ZendActionHttpException extends Exception
$statusCode,
$message,
$code = 0,
- Exception $previous = null
+ ?Exception $previous = null
) {
Logging::error('Error in action ' . $action->getRequest()->getActionName()
. " with status code {$statusCode}: {$message}");
diff --git a/legacy/application/logging/AirtimeLog.php b/legacy/application/logging/AirtimeLog.php
index 5759936b8..e27493d12 100644
--- a/legacy/application/logging/AirtimeLog.php
+++ b/legacy/application/logging/AirtimeLog.php
@@ -17,7 +17,7 @@ class Airtime_Zend_Log extends Zend_Log
*/
protected $_origErrorHandler;
- public function __construct(Zend_Log_Writer_Abstract $writer = null)
+ public function __construct(?Zend_Log_Writer_Abstract $writer = null)
{
parent::__construct($writer);
}
diff --git a/legacy/application/models/airtime/CcShow.php b/legacy/application/models/airtime/CcShow.php
index 02c6c569e..81f44f817 100644
--- a/legacy/application/models/airtime/CcShow.php
+++ b/legacy/application/models/airtime/CcShow.php
@@ -42,7 +42,7 @@ class CcShow extends BaseCcShow
*
* @throws PropelException
*/
- public function getFirstCcShowDay($criteria = null, PropelPDO $con = null)
+ public function getFirstCcShowDay($criteria = null, ?PropelPDO $con = null)
{
/*CcShowPeer::clearInstancePool();
CcShowPeer::clearRelatedInstancePool();*/
@@ -161,7 +161,7 @@ class CcShow extends BaseCcShow
*
* @throws PropelException
*/
- public function getFutureCcShowInstancess($criteria = null, PropelPDO $con = null)
+ public function getFutureCcShowInstancess($criteria = null, ?PropelPDO $con = null)
{
if (null === $this->collCcShowInstancess || null !== $criteria) {
if ($this->isNew() && null === $this->collCcShowInstancess) {
@@ -246,7 +246,7 @@ class CcShow extends BaseCcShow
*
* @throws PropelException
*/
- public function getCcShowInstancess($criteria = null, PropelPDO $con = null)
+ public function getCcShowInstancess($criteria = null, ?PropelPDO $con = null)
{
return CcShowInstancesQuery::create(null, $criteria)
->filterByCcShow($this)
diff --git a/legacy/application/models/airtime/CcShowInstances.php b/legacy/application/models/airtime/CcShowInstances.php
index 0a495a833..30cd519a9 100644
--- a/legacy/application/models/airtime/CcShowInstances.php
+++ b/legacy/application/models/airtime/CcShowInstances.php
@@ -192,7 +192,7 @@ class CcShowInstances extends BaseCcShowInstances
$this->save($con);
}
- public function preInsert(PropelPDO $con = null)
+ public function preInsert(?PropelPDO $con = null)
{
$now = new DateTime('now', new DateTimeZone('UTC'));
$this->setDbCreated($now);
diff --git a/legacy/application/modules/rest/controllers/RouteController.php b/legacy/application/modules/rest/controllers/RouteController.php
index 0b3482a1c..4d9b61b87 100644
--- a/legacy/application/modules/rest/controllers/RouteController.php
+++ b/legacy/application/modules/rest/controllers/RouteController.php
@@ -24,7 +24,7 @@ class Rest_RouteController extends Zend_Controller_Router_Route
* @param Zend_Translate $translator Translator to use for this instance
* @param null|mixed $locale
*/
- public function __construct(Zend_Controller_Front $front, $route, $defaults = [], $reqs = [], Zend_Translate $translator = null, $locale = null)
+ public function __construct(Zend_Controller_Front $front, $route, $defaults = [], $reqs = [], ?Zend_Translate $translator = null, $locale = null)
{
$this->_front = $front;
$this->_dispatcher = $front->getDispatcher();
diff --git a/legacy/tools/composer.json b/legacy/tools/composer.json
index ad0f37c53..96b9bd134 100644
--- a/legacy/tools/composer.json
+++ b/legacy/tools/composer.json
@@ -1,6 +1,6 @@
{
"require": {
"php": "^7.4",
- "friendsofphp/php-cs-fixer": "<3.51.1"
+ "friendsofphp/php-cs-fixer": "<3.53.1"
}
}