Skip to content

Commit

Permalink
Fix some more PHPStan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Mar 21, 2023
1 parent 9675c34 commit be3ab80
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
12 changes: 0 additions & 12 deletions src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,4 @@ public function update($key, $value)
Helper::deprecated('Timber\Core::update()', 'update_metadata()', '2.0.0');
update_metadata($this->object_type, $this->ID, $key, $value);
}

/**
*
*
* @return array
*/
public function get_method_values()
{
$ret = [];
$ret['can_edit'] = $this->can_edit();
return $ret;
}
}
3 changes: 1 addition & 2 deletions src/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,8 @@ public function css_class($class = '')
* @return array
* @codeCoverageIgnore
*/
public function get_method_values()
public function get_method_values(): array
{
$ret = parent::get_method_values();
$ret['author'] = $this->author();
$ret['categories'] = $this->categories();
$ret['category'] = $this->category();
Expand Down
2 changes: 1 addition & 1 deletion src/Timber.php
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ public static function get_pages_menu(array $args = [])
* @param array $options Optional. None are currently supported.
* @return array
*/
public static function get_comments(array $query = [], array $options = []): iterable
public static function get_comments($query = [], array $options = []): iterable
{
$factory = new CommentFactory();
// TODO return a Collection type?
Expand Down

0 comments on commit be3ab80

Please sign in to comment.