Skip to content

Commit 606cb3d

Browse files
committedJan 23, 2018
1 parent dadb817 commit 606cb3d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

Diff for: ‎src/HTTPResponse.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
};
1818

1919
class HTTPResponse implements HTTPResponseInterface, ContainerInterface{
20-
use Container;
20+
use Container{
21+
__get as containerGet;
22+
}
2123

2224
/**
2325
* @var string
@@ -35,7 +37,6 @@ class HTTPResponse implements HTTPResponseInterface, ContainerInterface{
3537
protected $body;
3638

3739
/**
38-
* @todo -> align with php-oauth
3940
* @codeCoverageIgnore
4041
*
4142
* @param string $property
@@ -50,11 +51,8 @@ public function __get(string $property){
5051
elseif($property === 'json_array'){
5152
return json_decode($this->body, true);
5253
}
53-
elseif(property_exists($this, $property)){
54-
return $this->{$property};
55-
}
5654

57-
return null;
55+
return $this->containerGet($property);
5856
}
5957

6058

0 commit comments

Comments
 (0)
Please sign in to comment.