Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 3238c7c

Browse files
committed
wip
1 parent 1ccd037 commit 3238c7c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/GitDown.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,28 @@ public function parse($content)
3838
throw new \Exception('GitHub API Error: ' . $response->body());
3939
}
4040

41-
return $response;
41+
return (string) $response;
4242
}
4343

4444
public function parseAndCache($content, $minutes = null)
4545
{
4646
if (is_callable($minutes)) {
47-
return $minutes(static::generateParseCallback($content));
47+
return $minutes($this->generateParseCallback($content));
4848
} elseif (is_null($minutes)) {
4949
return cache()->rememberForever(sha1($content), function () use ($content) {
50-
return static::parse($content);
50+
return $this->parse($content);
5151
});
5252
}
5353

5454
return cache()->remember(sha1($content), $minutes, function () use ($content) {
55-
return static::parse($content);
55+
return $this->parse($content);
5656
});
5757
}
5858

5959
protected function generateParseCallback($content)
6060
{
6161
return function () use ($content) {
62-
return static::parse($content);
62+
return $this->parse($content);
6363
};
6464
}
6565

0 commit comments

Comments
 (0)