Skip to content

Commit

Permalink
Update method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Martyn Jones committed Nov 20, 2023
1 parent a2349aa commit 82d2ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-wc-abstract-google-analytics-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ abstract public static function tracker_var(): string;
*
* @return void
*/
abstract public function set_script_data( string $type, string|array $data, ?string $key = null ): void;
abstract public function set_script_data( string $type, $data, ?string $key = null ): void;

/**
* Get the class instance
Expand Down
2 changes: 1 addition & 1 deletion includes/class-wc-google-gtag-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function() use ( $gtag_event ) {
*
* @return void
*/
public function set_script_data( string $type, string|array $data, ?string $key = null ): void {
public function set_script_data( string $type, $data, ?string $key = null ): void {
if ( ! isset( $this->script_data[ $type ] ) ) {
$this->script_data[ $type ] = array();
}
Expand Down

0 comments on commit 82d2ce2

Please sign in to comment.