Skip to content

Commit

Permalink
fix: Fix a compatibility bug with Timber 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed May 16, 2024
1 parent 1b964fa commit 3fa43c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"docs": "https://github.com/mindkomm/timber-integration-woocommerce#documentation"
},
"require": {
"php": "^7.4 || ^8.0",
"timber/timber": "^2.0"
"php": "^8.1",
"timber/timber": "^2.2"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion lib/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Product extends Post {
* a class that inherits from WC_Product.
* @return \Timber\Post
*/
public static function build( WP_Post $wp_post): self {
public static function build( WP_Post $wp_post): static {
$post = parent::build( $wp_post );

/**
Expand Down

0 comments on commit 3fa43c8

Please sign in to comment.