fix return type mixed for php7.4
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 51s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 56s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 54s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 57s

This commit is contained in:
André Menrath 2024-11-02 11:18:18 +01:00
parent 579f0e5f57
commit fa08fd87b8
2 changed files with 2 additions and 1 deletions

View file

@ -47,7 +47,7 @@ final class The_Events_Calendar extends Post {
* *
* @return array|string|null The place/venue if one is set. * @return array|string|null The place/venue if one is set.
*/ */
public function get_address(): mixed { public function get_address() {
$address = array(); $address = array();
if ( ! empty( $this->wp_object->country ) ) { if ( ! empty( $this->wp_object->country ) ) {

View file

@ -192,6 +192,7 @@ class Test_The_Events_Calendar extends WP_UnitTestCase {
->create(); ->create();
// Call the transformer. // Call the transformer.
$event_array = \Activitypub\Transformer\Factory::get_transformer( $wp_object )->to_object()->to_array(); $event_array = \Activitypub\Transformer\Factory::get_transformer( $wp_object )->to_object()->to_array();
// Check that the event ActivityStreams representation contains everything as expected. // Check that the event ActivityStreams representation contains everything as expected.