Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
1 parent
8bea6067cd
commit
b41dc2b2eb
550 files changed
+15270
-14627
No files matched your search
@@ -7,7 +7,7 @@ use WP_Ultimo\Managers\Gateway_Manager;
|
||||
|
||||
class Gateway_Functions_Test extends \WP_UnitTestCase {
|
||||
|
||||
public function test_wu_get_gateway_returns_false_for_invalid_id() {
|
||||
public function test_wu_get_gateway_returns_false_for_invalid_id(): void {
|
||||
$invalid_gateway_id = 'non_existent_gateway';
|
||||
|
||||
$result = wu_get_gateway($invalid_gateway_id);
|
||||
@@ -15,7 +15,7 @@ class Gateway_Functions_Test extends \WP_UnitTestCase {
|
||||
$this->assertFalse($result);
|
||||
}
|
||||
|
||||
public function test_wu_get_gateway_returns_instance_for_valid_id() {
|
||||
public function test_wu_get_gateway_returns_instance_for_valid_id(): void {
|
||||
$valid_gateway_id = 'manual';
|
||||
|
||||
$gateway = wu_get_gateway($valid_gateway_id);
|
||||
|
||||
Reference in new issue
Block a user