Skip to content

Commit

Permalink
Revert "Fix PSalm issue on useless sprintf"
Browse files Browse the repository at this point in the history
This reverts commit 0f522a5.
  • Loading branch information
Slamdunk committed Jun 28, 2023
1 parent 712b5fe commit 030cb35
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"laminas/laminas-loader": "^2.9.0",
"laminas/laminas-mime": "^2.11.0",
"laminas/laminas-stdlib": "^3.17.0",
"laminas/laminas-validator": "^2.33.0",
"laminas/laminas-validator": "^2.31.0",
"symfony/polyfill-mbstring": "^1.27.0",
"webmozart/assert": "^1.11.0",
"symfony/polyfill-intl-idn": "^1.27.0"
Expand All @@ -23,10 +23,10 @@
"laminas/laminas-crypt": "^3.10.0",
"laminas/laminas-db": "^2.18",
"laminas/laminas-servicemanager": "^3.21",
"phpunit/phpunit": "^10.2.2",
"phpunit/phpunit": "^10.1.3",
"psalm/plugin-phpunit": "^0.18.4",
"symfony/process": "^6.3.0",
"vimeo/psalm": "^5.13.1"
"symfony/process": "^6.2.10",
"vimeo/psalm": "^5.11"
},
"suggest": {
"laminas/laminas-crypt": "^3.10 Crammd5 support in SMTP Auth",
Expand Down
26 changes: 13 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion test/Transport/SmtpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use ReflectionClass;

use function explode;
use function sprintf;
use function str_repeat;
use function strlen;
use function substr;
Expand Down Expand Up @@ -230,7 +231,7 @@ public function testLongLinesFoldingRFC5322(): void
$this->assertCount(28, $lines);

foreach ($lines as $line) {
$this->assertLessThanOrEqual($maxLen, strlen($line), 'Line is too long: ' . $line);
$this->assertLessThanOrEqual($maxLen, strlen($line), sprintf('Line is too long: ' . $line));
}

$this->assertStringNotContainsString(
Expand Down

0 comments on commit 030cb35

Please sign in to comment.