Skip to content

Commit

Permalink
Merge branch '2.12.x' into 2.11.x-merge-up-into-2.12.x_vi6yjNRm
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pivetta <ocramius@gmail.com>
  • Loading branch information
Ocramius committed Jul 6, 2022
2 parents 1f97b0c + c272a93 commit 198cd9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions docs/book/v2/migration.md
Expand Up @@ -29,10 +29,6 @@ The first approach may fail if libraries you depend on specifically require a
version 1 release. The second approach may leave you on a version 1 release in
situations where other libraries you depend on require version 1.

In all cases, if you are only using the PSR-7 implementations and/or the
`ServerRequestFactory::fromGlobals()` functionality, upgrading to version 2 will
pose no backwards compatibility issues.

## Changed

- `Laminas\Diactoros\RequestTrait` now raises an `InvalidArgumentException` in
Expand All @@ -42,6 +38,12 @@ pose no backwards compatibility issues.
`UnexpectedValueException` due to an unexpected HTTP method; this is due to the
fact that the HTTP method value can no longer be set to an invalid value.

- `Laminas\Diactoros\marshalHeadersFromSapi()` is parsing headers differently compared to the legacy implementation.
As a consequence Headers with `'0'` as values will be part of the parsed Headers.
In former versions those headers were ignored.
Usages of `\Laminas\Diactoros\MessageTrait::hasHeader()` and `\Laminas\Diactoros\MessageTrait::getHeader()`
might be affected if you are using `ServerRequestFactory::fromGlobals()` functionality.

## Removed

Several features were removed for version 2. These include removal of the
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/UploadedFileErrorException.php
Expand Up @@ -31,7 +31,7 @@ public static function dueToUnwritablePath() : self
public static function dueToUnwritableTarget(string $targetDirectory) : self
{
return new self(sprintf(
'The target directory `%s` does not exists or is not writable',
'The target directory `%s` does not exist or is not writable',
$targetDirectory
));
}
Expand Down

0 comments on commit 198cd9a

Please sign in to comment.