OFFLINE-GmbH / oc-clockwork-plugin

Debugging and profiling plugin for October CMS
MIT License
5 stars 2 forks source link

OC v3 and php 8.1 compatibility? #8

Open chrisvidal opened 8 months ago

chrisvidal commented 8 months ago

I am trying to install the plugin from the backend UI and have this exception

Update Failed
"Declaration of Clockwork\Request\Log::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void" on line 26 of /Users/christophevidal/Sites/oc-courses/plugins/offline/clockwork/vendor/itsgoingd/clockwork/Clockwork/Request/Log.php
tobias-kuendig commented 8 months ago

The plugin currently installs Clockwork 3.1: https://github.com/OFFLINE-GmbH/oc-clockwork-plugin/blob/fe8561aff6a3718417676b1411cabdbab92c79a6/composer.json#L20

This is not compatible with Laravel 9. You can update the requirement in the composer.json to install a newer Clockwork version, but it is very likely, that further modifications to this plugin are required and it won't be compatible with newer clockwork versions out of the box.