Skip to content

Commit ed0f2b9

Browse files
committed
Fix some minor bugs found by phpstan
1 parent 4c3b0e4 commit ed0f2b9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getPosts( string $format = "" ):array {
3434
$url = "/collections/" . $this->alias . "/posts";
3535

3636
if ( !empty( $format ) && $format === "html" ) {
37-
$urls .= "?body=" . $format;
37+
$url .= "?body=" . $format;
3838
}
3939

4040
$response = $this->context->request( $url );

lib/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function request( string $url, ?string $postdata = null ) {
7070
* casting for you.
7171
*
7272
* @var stdClass $obj Object to check arguments on
73-
* @var $arguments List of strings that contain keynames on the object
73+
* @var mixed $arguments List of strings that contain keynames on the object
7474
* that you'd possibly want to include in the request.
7575
* @return string json encoded string
7676
*/

0 commit comments

Comments
 (0)