From ae77a49c612e8a14954e4b22071ed3afc02ba301 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Wed, 15 Oct 2025 17:26:38 +0200 Subject: [PATCH] chore: Update the dependencies --- composer.lock | 54 ++++++++++++++++++-------------------- src/utils/view_helpers.php | 3 ++- 2 files changed, 27 insertions(+), 30 deletions(-) diff --git a/composer.lock b/composer.lock index 81ec5f6..c71c70e 100644 --- a/composer.lock +++ b/composer.lock @@ -58,16 +58,16 @@ }, { "name": "flus/minz", - "version": "2.0.2", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/flusio/Minz.git", - "reference": "b2154dc316181af2cae1d980df9b12bd97de374f" + "reference": "1d50585fe791be492b71b8695272b7bff78abad0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/flusio/Minz/zipball/b2154dc316181af2cae1d980df9b12bd97de374f", - "reference": "b2154dc316181af2cae1d980df9b12bd97de374f", + "url": "https://api.github.com/repos/flusio/Minz/zipball/1d50585fe791be492b71b8695272b7bff78abad0", + "reference": "1d50585fe791be492b71b8695272b7bff78abad0", "shasum": "" }, "require": { @@ -79,7 +79,7 @@ "phpstan/phpstan": "^2.0", "phpunit/phpunit": "^11.2", "rector/rector": "^2.0", - "squizlabs/php_codesniffer": "^3.7" + "squizlabs/php_codesniffer": "^4.0" }, "type": "library", "autoload": { @@ -98,22 +98,22 @@ "homepage": "https://github.com/flusio/Minz", "support": { "issues": "https://github.com/flusio/Minz/issues", - "source": "https://github.com/flusio/Minz/tree/2.0.2" + "source": "https://github.com/flusio/Minz/tree/2.0.3" }, - "time": "2025-08-23T14:00:06+00:00" + "time": "2025-10-15T14:12:12+00:00" }, { "name": "phpmailer/phpmailer", - "version": "v6.10.0", + "version": "v6.11.1", "source": { "type": "git", "url": "https://github.com/PHPMailer/PHPMailer.git", - "reference": "bf74d75a1fde6beaa34a0ddae2ec5fce0f72a144" + "reference": "d9e3b36b47f04b497a0164c5a20f92acb4593284" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/bf74d75a1fde6beaa34a0ddae2ec5fce0f72a144", - "reference": "bf74d75a1fde6beaa34a0ddae2ec5fce0f72a144", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/d9e3b36b47f04b497a0164c5a20f92acb4593284", + "reference": "d9e3b36b47f04b497a0164c5a20f92acb4593284", "shasum": "" }, "require": { @@ -134,6 +134,7 @@ }, "suggest": { "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", + "ext-imap": "Needed to support advanced email address parsing according to RFC822", "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", "ext-openssl": "Needed for secure SMTP sending and DKIM signing", "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", @@ -173,7 +174,7 @@ "description": "PHPMailer is a full-featured email creation and transfer class for PHP", "support": { "issues": "https://github.com/PHPMailer/PHPMailer/issues", - "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.10.0" + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.11.1" }, "funding": [ { @@ -181,7 +182,7 @@ "type": "github" } ], - "time": "2025-04-24T15:19:31+00:00" + "time": "2025-09-30T11:54:53+00:00" }, { "name": "symfony/deprecation-contracts", @@ -501,16 +502,11 @@ "packages-dev": [ { "name": "phpstan/phpstan", - "version": "2.1.27", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "25da374959afa391992792691093550b3098ef1e" - }, + "version": "2.1.31", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/25da374959afa391992792691093550b3098ef1e", - "reference": "25da374959afa391992792691093550b3098ef1e", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ead89849d879fe203ce9292c6ef5e7e76f867b96", + "reference": "ead89849d879fe203ce9292c6ef5e7e76f867b96", "shasum": "" }, "require": { @@ -555,25 +551,25 @@ "type": "github" } ], - "time": "2025-09-17T09:55:13+00:00" + "time": "2025-10-10T14:14:11+00:00" }, { "name": "rector/rector", - "version": "2.1.7", + "version": "2.2.3", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "c34cc07c4698f007a20dc5c99ff820089ae413ce" + "reference": "d27f976a332a87b5d03553c2e6f04adbe5da034f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/c34cc07c4698f007a20dc5c99ff820089ae413ce", - "reference": "c34cc07c4698f007a20dc5c99ff820089ae413ce", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/d27f976a332a87b5d03553c2e6f04adbe5da034f", + "reference": "d27f976a332a87b5d03553c2e6f04adbe5da034f", "shasum": "" }, "require": { "php": "^7.4|^8.0", - "phpstan/phpstan": "^2.1.18" + "phpstan/phpstan": "^2.1.26" }, "conflict": { "rector/rector-doctrine": "*", @@ -607,7 +603,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/2.1.7" + "source": "https://github.com/rectorphp/rector/tree/2.2.3" }, "funding": [ { @@ -615,7 +611,7 @@ "type": "github" } ], - "time": "2025-09-10T11:13:58+00:00" + "time": "2025-10-11T21:50:23+00:00" }, { "name": "squizlabs/php_codesniffer", diff --git a/src/utils/view_helpers.php b/src/utils/view_helpers.php index 5116c40..c707a0f 100644 --- a/src/utils/view_helpers.php +++ b/src/utils/view_helpers.php @@ -14,8 +14,9 @@ function format_bytes(int $size, int $precision = 2): string { $base = log($size, 1024); $suffixes = array('', 'K', 'M', 'G', 'T'); + $suffix = $suffixes[intval(floor($base))]; - return format_number(pow(1024, $base - floor($base)), $precision) . ' ' . $suffixes[floor($base)]; + return format_number(pow(1024, $base - floor($base)), $precision) . ' ' . $suffix; } function locale_to_bcp_47(string $locale): string