Skip to content

Commit

Permalink
fix: calling non static method statically
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink committed Feb 26, 2024
1 parent 397ed18 commit c774c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/php/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ private static function getPost($post)
return null;
}

public function getTheExcerpt($post, int $numberOfWords = 55) {
public static function getTheExcerpt($post, int $numberOfWords = 55) {

$excerpt = get_the_excerpt($post);

Expand Down

0 comments on commit c774c99

Please sign in to comment.