Skip to content

Commit

Permalink
Replace deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
zbateson committed Mar 18, 2024
1 parent 46ed757 commit a5986ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Header/HeaderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ public function newInstanceOf(string $name, string $value, string $iHeaderClass)
if ($ref->isSubclassOf(MimeEncodedHeader::class)) {
return new $iHeaderClass(
$this->mimeLiteralPartFactory,
$this->consumerServices[$params[1]->getClass()->getName()],
$this->consumerServices[$params[1]->getType()->getName()],
$name,
$value
);
}
return new $iHeaderClass(
$this->consumerServices[$params[0]->getClass()->getName()],
$this->consumerServices[$params[0]->getType()->getName()],
$name,
$value
);
Expand Down
25 changes: 13 additions & 12 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="./bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
convertDeprecationsToExceptions="true"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="./bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
convertDeprecationsToExceptions="true"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">../src/</directory>
Expand Down

0 comments on commit a5986ed

Please sign in to comment.