From 0df3f7f08ba2980eb9ef0a51fb6b9d3e98ae07c6 Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Wed, 11 Dec 2024 14:08:35 +0100 Subject: [PATCH 1/4] chore: PHP CS Fixer fixes --- Part/Multipart/FormDataPart.php | 1 - Tests/Encoder/QpContentEncoderTest.php | 4 ++-- Tests/RawMessageTest.php | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Part/Multipart/FormDataPart.php b/Part/Multipart/FormDataPart.php index 4c7b608..ca40801 100644 --- a/Part/Multipart/FormDataPart.php +++ b/Part/Multipart/FormDataPart.php @@ -13,7 +13,6 @@ use Symfony\Component\Mime\Exception\InvalidArgumentException; use Symfony\Component\Mime\Part\AbstractMultipartPart; -use Symfony\Component\Mime\Part\DataPart; use Symfony\Component\Mime\Part\TextPart; /** diff --git a/Tests/Encoder/QpContentEncoderTest.php b/Tests/Encoder/QpContentEncoderTest.php index 750c74f..e538583 100644 --- a/Tests/Encoder/QpContentEncoderTest.php +++ b/Tests/Encoder/QpContentEncoderTest.php @@ -20,7 +20,7 @@ public function testReplaceLastChar() { $encoder = new QpContentEncoder(); - $this->assertSame('message=09', $encoder->encodeString('message'.chr(0x09))); - $this->assertSame('message=20', $encoder->encodeString('message'.chr(0x20))); + $this->assertSame('message=09', $encoder->encodeString('message'.\chr(0x09))); + $this->assertSame('message=20', $encoder->encodeString('message'.\chr(0x20))); } } diff --git a/Tests/RawMessageTest.php b/Tests/RawMessageTest.php index b9cb1a2..2ba54a5 100644 --- a/Tests/RawMessageTest.php +++ b/Tests/RawMessageTest.php @@ -77,8 +77,8 @@ public function testToIterableLegacy(mixed $messageParameter, bool $supportReuse public function testToIterableOnResourceRewindsAndYieldsLines() { - $handle = \fopen('php://memory', 'r+'); - \fwrite($handle, "line1\nline2\nline3\n"); + $handle = fopen('php://memory', 'r+'); + fwrite($handle, "line1\nline2\nline3\n"); $message = new RawMessage($handle); $this->assertSame("line1\nline2\nline3\n", implode('', iterator_to_array($message->toIterable()))); From 3a4e258771e8d768c643387ec90ac0f6d3bfef8a Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 2 Jun 2025 16:08:14 +0200 Subject: [PATCH 2/4] Allow Symfony ^8.0 --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 5304bdf..e5cbc3c 100644 --- a/composer.json +++ b/composer.json @@ -24,11 +24,11 @@ "egulias/email-validator": "^2.1.10|^3.1|^4", "league/html-to-markdown": "^5.0", "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/process": "^6.4|^7.0", - "symfony/property-access": "^6.4|^7.0", - "symfony/property-info": "^6.4|^7.0", - "symfony/serializer": "^6.4.3|^7.0.3" + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/property-access": "^6.4|^7.0|^8.0", + "symfony/property-info": "^6.4|^7.0|^8.0", + "symfony/serializer": "^6.4.3|^7.0.3|^8.0" }, "conflict": { "egulias/email-validator": "~3.0.0", From c485b0dd7d1f0c8038b75a9a85cff17c8bbd934d Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 2 Jun 2025 17:50:55 +0200 Subject: [PATCH 3/4] Bump Symfony 8 to PHP >= 8.4 --- composer.json | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index e5cbc3c..f22b158 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": ">=8.2", + "php": ">=8.4", "symfony/polyfill-intl-idn": "^1.10", "symfony/polyfill-mbstring": "^1.0" }, @@ -24,18 +24,16 @@ "egulias/email-validator": "^2.1.10|^3.1|^4", "league/html-to-markdown": "^5.0", "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", - "symfony/dependency-injection": "^6.4|^7.0|^8.0", - "symfony/process": "^6.4|^7.0|^8.0", - "symfony/property-access": "^6.4|^7.0|^8.0", - "symfony/property-info": "^6.4|^7.0|^8.0", - "symfony/serializer": "^6.4.3|^7.0.3|^8.0" + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/process": "^7.4|^8.0", + "symfony/property-access": "^7.4|^8.0", + "symfony/property-info": "^7.4|^8.0", + "symfony/serializer": "^7.4|^8.0" }, "conflict": { "egulias/email-validator": "~3.0.0", "phpdocumentor/reflection-docblock": "<3.2.2", - "phpdocumentor/type-resolver": "<1.4.0", - "symfony/mailer": "<6.4", - "symfony/serializer": "<6.4.3|>7.0,<7.0.3" + "phpdocumentor/type-resolver": "<1.4.0" }, "autoload": { "psr-4": { "Symfony\\Component\\Mime\\": "" }, From 6f06f417b9c51038c8b8de0f97b319e4bd51b71c Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 9 Oct 2024 11:06:51 +0200 Subject: [PATCH 4/4] run tests using PHPUnit 11.5 --- phpunit.xml.dist | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9ccc292..f2dc115 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy