Skip to content

Commit

Permalink
Fix lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 9, 2017
1 parent 66f49a4 commit 5cc635f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Http/ServerRequest.php
Expand Up @@ -659,6 +659,7 @@ public function __set($name, $value)
"Setting {$name} as a property will be removed in 4.0.0. " .
"Use {$method} instead."
);

return $this->{$name} = $value;
}
throw new BadMethodCallException("Cannot set {$name} it is not a known property.");
Expand All @@ -682,6 +683,7 @@ public function &__get($name)
"Accessing `{$name}` as a property will be removed in 4.0.0. " .
"Use request->{$method} instead."
);

return $this->{$name};
}

Expand Down Expand Up @@ -716,6 +718,7 @@ public function __isset($name)
"Accessing {$name} as a property will be removed in 4.0.0. " .
"Use {$method} instead."
);

return isset($this->{$name});
}

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Auth/BasicAuthenticateTest.php
Expand Up @@ -147,7 +147,7 @@ public function testAuthenticateUsernameZero()
$User->updateAll(['username' => '0'], ['username' => 'mariano']);

$request = new ServerRequest([
'url' => 'posts/index',
'url' => 'posts/index',
'data' => [
'User' => [
'user' => '0',
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Http/ServerRequestTest.php
Expand Up @@ -1260,7 +1260,7 @@ public function testAddDetector()
ServerRequest::addDetector('callme', function ($request) {
return $request->getAttribute('return');
});
$request = $request->withAttribute('return', true);;
$request = $request->withAttribute('return', true);
$request->clearDetectorCache();
$this->assertTrue($request->isCallMe());

Expand Down

0 comments on commit 5cc635f

Please sign in to comment.