Skip to content

Commit

Permalink
Merge branch 'release/6.0.24'
Browse files Browse the repository at this point in the history
* release/6.0.24:
  Apply fixes from StyleCI (#946)
  ues a nullable paramater
  • Loading branch information
austintoddj committed Mar 5, 2021
2 parents 00d6d4a + 67a271f commit 42acf74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/StatsAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ protected function generateDateRange(
/**
* Get the human-friendly estimated reading time of a given text.
*
* @param string $text
* @param null|string $text
* @return string
*/
protected function calculateReadTime(string $text): string
protected function calculateReadTime(?string $text): string
{
// Only count words in our estimation
$words = str_word_count(strip_tags($text));
Expand Down
1 change: 1 addition & 0 deletions tests/Http/Controllers/PostControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public function testAnAdminCanFetchStatsForAnyPost(): void
{
$post = factory(Post::class)->create([
'user_id' => $this->contributor->id,
'body' => null,
]);

factory(View::class)->create([
Expand Down

0 comments on commit 42acf74

Please sign in to comment.