Compare commits

...

6 commits
main ... php74

Author SHA1 Message Date
e7c57e48bd Merge commit 'ba922e6030c75b489699c26e5dd2089e58ec719e' into php74
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 48s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m0s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m1s
2024-10-31 16:34:44 +01:00
97d04c2e47 also add php8.0 to unit tests
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 50s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m6s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Has been cancelled
2024-10-31 16:28:23 +01:00
b1f41cc124 adjust return typo syntax 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 1m5s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m7s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m3s
2024-10-31 16:24:57 +01:00
60d9aa909f update compose cache for php 7.4. compatibility
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 50s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 3m50s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 3m55s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Has been cancelled
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Has been cancelled
2024-10-31 15:42:23 +01:00
0057c3ddcc fix composer.json
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Has been cancelled
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 57s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m0s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m3s
2024-10-28 15:04:19 +01:00
d42f83ea5b add php 7.4
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 54s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 56s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Has been cancelled
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Has been cancelled
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Has been cancelled
2024-10-28 15:01:39 +01:00
7 changed files with 9 additions and 9 deletions

View file

@ -21,7 +21,7 @@ jobs:
MYSQL_ROOT_PASSWORD: root
strategy:
matrix:
php-version: ['8.1', '8.2', '8.3']
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
name: PHPUnit PHP ${{ matrix.php-version }}
env:
extensions: mysql
@ -45,7 +45,7 @@ jobs:
with:
path: |
./vendor/
key: cache-composer-phpunit-1
key: cache-composer-phpunit-2
- name: Setup PHP
uses: https://github.com/shivammathur/setup-php@v2

View file

@ -4,7 +4,7 @@
**Requires at least:** 6.5
**Tested up to:** 6.6
**Stable tag:** 0.2.0
**Requires PHP:** 8.1
**Requires PHP:** 7.4
**License:** AGPL-3.0-or-later
**License URI:** https://www.gnu.org/licenses/agpl-3.0.html
Integrating popular event plugins with the ActivityPub plugin.

View file

@ -9,7 +9,7 @@
* Text Domain: activitypub-event-bridge
* License: AGPL-3.0-or-later
* License URI: https://www.gnu.org/licenses/agpl-3.0.html
* Requires PHP: 8.1
* Requires PHP: 7.4
*
* Requires at least ActivityPub plugin with version >= 3.2.2. ActivityPub plugin tested up to: 4.0.1.
*

View file

@ -4,7 +4,7 @@
"description": "The ActivityPub Event Bridge help for event custom post types to federate properly.",
"type": "wordpress-plugin",
"require": {
"php": ">=8.1.0",
"php": ">=7.4.0",
"composer/installers": "^2.0"
},
"require-dev": {

View file

@ -121,9 +121,9 @@ final class The_Events_Calendar extends Event {
/**
* Get the event location.
*
* @return Place|array The place/venue if one is set.
* @return ?Place The place/venue if one is set.
*/
public function get_location(): Place|null {
public function get_location(): ?Place {
// Get short handle for the venues.
$venues = $this->tribe_event->venues;

View file

@ -252,7 +252,7 @@ class Setup {
*
* @return \Activitypub\Transformer\Base|null
*/
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base|null {
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base {
// If the current WordPress object is not a post (e.g., a WP_Comment), don't change the transformer.
if ( 'WP_Post' !== $object_class ) {
return $transformer;

View file

@ -4,7 +4,7 @@ Tags: events, fediverse, activitypub, calendar
Requires at least: 6.5
Tested up to: 6.6
Stable tag: 0.2.0
Requires PHP: 8.1
Requires PHP: 7.4
License: AGPL-3.0-or-later
License URI: https://www.gnu.org/licenses/agpl-3.0.html
Integrating popular event plugins with the ActivityPub plugin.