You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the type "mixed" is added in 8.0.0, therefore caused php 7.4 to believe that PWASettingsSerializer doesn't implement AbstractSerializer by assuming "mixed" a namespaced custom type.
PHP Fatal error: Declaration of Askvortsov\FlarumPWA\Api\Serializer\PWASettingsSerializer::getId(Askvortsov\FlarumPWA\Api\Serializer\mixed $model): string must be compatible with Tobscure\JsonApi\AbstractSerializer::getId($model) in /srv/bbs/vendor/askvortsov/flarum-pwa/src/Api/Serializer/PWASettingsSerializer.php on line 40
6e7a6dc#diff-7103e37e54fed89a50121abe7350a677a5c3e2d2ba79cde5e06f6d11fb052d1cL40
the type "mixed" is added in 8.0.0, therefore caused php 7.4 to believe that
PWASettingsSerializer
doesn't implementAbstractSerializer
by assuming "mixed" a namespaced custom type.PHP Fatal error: Declaration of Askvortsov\FlarumPWA\Api\Serializer\PWASettingsSerializer::getId(Askvortsov\FlarumPWA\Api\Serializer\mixed $model): string must be compatible with Tobscure\JsonApi\AbstractSerializer::getId($model) in /srv/bbs/vendor/askvortsov/flarum-pwa/src/Api/Serializer/PWASettingsSerializer.php on line 40
fyi the base class: https://github.com/tobyzerner/json-api-php/blob/master/src/AbstractSerializer.php#L36-L39C6
removing the "mixed" type declaration adds compatibility for 7.4 for me. currently no other issues observed.
The text was updated successfully, but these errors were encountered: