Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 24, 2018
1 parent 8650f93 commit 80115ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [UNRELEASED]
## [1.0.0] - 2017-01-24

### Added

Expand Down Expand Up @@ -63,7 +63,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

First version

[UNRELEASED]: https://github.com/middlewares/base-path/compare/v0.5.0...HEAD
[1.0.0]: https://github.com/middlewares/base-path/compare/v0.5.0...v1.0.0
[0.5.0]: https://github.com/middlewares/base-path/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/middlewares/base-path/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/middlewares/base-path/compare/v0.2.0...v0.3.0
Expand Down
4 changes: 2 additions & 2 deletions src/BasePath.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BasePath implements MiddlewareInterface
*/
public function __construct(string $basePath)
{
$this->basePath = rtrim((string) $basePath, '/');
$this->basePath = rtrim($basePath, '/');

if (substr($this->basePath, 0, 1) !== '/') {
$this->basePath = '/'.$this->basePath;
Expand All @@ -37,7 +37,7 @@ public function __construct(string $basePath)
*/
public function fixLocation(bool $fixLocation = true): self
{
$this->fixLocation = (bool) $fixLocation;
$this->fixLocation = $fixLocation;

return $this;
}
Expand Down
1 change: 0 additions & 1 deletion tests/BasePathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function ($request) use ($location) {
},
], $request);

$this->assertInstanceOf('Psr\\Http\\Message\\ResponseInterface', $response);
$this->assertEquals($result, (string) $response->getBody());
$this->assertEquals($location, $response->getHeaderLine('Location'));
}
Expand Down

0 comments on commit 80115ef

Please sign in to comment.