Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions tests/_support/plugins/gateway-test-plugin/includes/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,26 @@ public function __construct() {
}


public function get_documentation_url() {

public function get_documentation_url() : ?string
{
return 'https://example.com';
}


public function get_settings_url( $plugin_id = null ) {

public function get_settings_url( string $plugin_id = null ) : string
{
return admin_url( 'admin.php?page=wc-settings' );
}


public function get_plugin_name() {

public function get_plugin_name() : string
{
return 'Framework Gateway Test Plugin';
}


protected function get_file() {

protected function get_file() : string
{
return __DIR__;
}

Expand Down
16 changes: 8 additions & 8 deletions tests/_support/plugins/test-plugin/includes/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,26 @@ public function __construct() {
}


public function get_documentation_url() {

public function get_documentation_url() : ?string
{
return 'https://example.com';
}


public function get_settings_url( $plugin_id = null ) {

public function get_settings_url( string $plugin_id = null ) : string
{
return admin_url( 'admin.php?page=wc-settings' );
}


public function get_plugin_name() {

public function get_plugin_name() : string
{
return 'Plugin Framework Test';
}


protected function get_file() {

protected function get_file() : string
{
return __DIR__;
}

Expand Down
Loading
Loading