diff --git a/src/AddressList.php b/src/AddressList.php index 0094bca0..fc4826ad 100644 --- a/src/AddressList.php +++ b/src/AddressList.php @@ -86,7 +86,7 @@ public function addMany(array $addresses) if (! is_string($key)) { throw new Exception\RuntimeException(sprintf( 'Invalid key type in provided addresses array ("%s")', - is_object($key) ? get_class($key) : var_export($key, 1) + is_object($key) ? get_class($key) : var_export($key, true) )); } diff --git a/src/Header/ContentDisposition.php b/src/Header/ContentDisposition.php index e03afb46..09fbbec9 100644 --- a/src/Header/ContentDisposition.php +++ b/src/Header/ContentDisposition.php @@ -82,7 +82,7 @@ public static function fromString($headerLine) if (! is_numeric($count)) { $type = gettype($count); - $value = var_export($count, 1); + $value = var_export($count, true); throw new Exception\InvalidArgumentException(sprintf( "Invalid header line for Content-Disposition string" . " - count expected to be numeric, got %s with value %s", diff --git a/src/Protocol/Smtp.php b/src/Protocol/Smtp.php index dbc98182..78f2a937 100644 --- a/src/Protocol/Smtp.php +++ b/src/Protocol/Smtp.php @@ -4,7 +4,6 @@ namespace Laminas\Mail\Protocol; -use Exception; use Generator; use Laminas\Mail\Headers; @@ -321,7 +320,7 @@ public function hasSession() * Send EHLO or HELO depending on capabilities of smtp host * * @param string $host The client hostname or IP address (default: 127.0.0.1) - * @throws Exception|Exception\ExceptionInterface + * @throws Exception\ExceptionInterface */ protected function ehlo($host) { diff --git a/test/Storage/MessageTest.php b/test/Storage/MessageTest.php index 2c371822..0b51ab33 100644 --- a/test/Storage/MessageTest.php +++ b/test/Storage/MessageTest.php @@ -396,8 +396,8 @@ public function testMessageFlagsAreSet(): void $message = new Message(['flags' => $origFlags]); $messageFlags = $message->getFlags(); - $this->assertTrue($message->hasFlag('bar'), var_export($messageFlags, 1)); - $this->assertTrue($message->hasFlag('bat'), var_export($messageFlags, 1)); + $this->assertTrue($message->hasFlag('bar'), var_export($messageFlags, true)); + $this->assertTrue($message->hasFlag('bat'), var_export($messageFlags, true)); $this->assertEquals(['bar' => 'bar', 'bat' => 'bat'], $messageFlags); }