From ae39d9e57765ef20a6548d1ce6fe906ce201963a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 25 Jan 2026 09:57:44 +0000 Subject: [PATCH 1/2] Update all non-major dependencies | datasource | package | from | to | | ---------- | --------------- | ------ | ------ | | packagist | phpstan/phpstan | 2.1.36 | 2.1.37 | | packagist | phpunit/phpunit | 12.5.6 | 12.5.7 | | packagist | symfony/console | 8.0.3 | 8.0.4 | --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 436e037..4b528be 100644 --- a/composer.json +++ b/composer.json @@ -14,12 +14,12 @@ "php": "~8.4.0 || ~8.5.0" }, "require-dev": { - "phpstan/phpstan": "^2.1.36", + "phpstan/phpstan": "^2.1.37", "phpstan/phpstan-phpunit": "^2.0.12", "phpstan/phpstan-strict-rules": "^2.0.7", - "phpunit/phpunit": "^12.5.6", + "phpunit/phpunit": "^12.5.7", "slam/php-cs-fixer-extensions": "^3.14.0", - "symfony/console": "^8.0.3" + "symfony/console": "^8.0.4" }, "autoload": { "psr-4": { From 4d6661d891007d955eeb57b6c6f2d4125c6154de Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: Mon, 26 Jan 2026 08:11:43 +0100 Subject: [PATCH 2/2] CS Fix --- Makefile | 2 +- tests/ErrorHandlerTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 10e7fe1..12178af 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ csfix: vendor .PHONY: static-analysis static-analysis: vendor - $(DOCKER_PHP_EXEC) php -d zend.assertions=1 vendor/bin/phpstan analyse $(PHPSTAN_ARGS) + $(DOCKER_PHP_EXEC) php -d zend.assertions=1 vendor/bin/phpstan analyse --memory-limit=512M $(PHPSTAN_ARGS) .PHONY: test test: vendor diff --git a/tests/ErrorHandlerTest.php b/tests/ErrorHandlerTest.php index fba2b03..cbfd67a 100644 --- a/tests/ErrorHandlerTest.php +++ b/tests/ErrorHandlerTest.php @@ -54,7 +54,7 @@ public function testDefaultConfiguration(): void $errorHandler->setCli(false); $errorHandler->setAutoExit(false); - $errorHandler->setTerminalWidth($width = \mt_rand(1, 999)); + $errorHandler->setTerminalWidth($width = \random_int(1, 999)); $errorHandler->setErrorOutputStream($memoryStream = \fopen('php://memory', 'r+')); $errorHandler->setLogErrors(true); @@ -252,7 +252,7 @@ public function testUsernameInEmailSubject(): void public function testTerminalWidthByEnv(): void { - $width = \mt_rand(1000, 9000); + $width = \random_int(1000, 9000); \putenv(\sprintf('COLUMNS=%s', $width)); $errorHandler = new ErrorHandler(function (): void {});