studioespresso / craft-date-range

Date range field for Craft CMS
MIT License
12 stars 6 forks source link

Craft 4 issues #32

Closed cloudgrayau closed 2 years ago

cloudgrayau commented 2 years ago

Hello,

This plugin is not working with Craft 4.0.4.

PHP Compile Error – yii\base\ErrorException Declaration of studioespresso\daterange\fields\DateRangeField::normalizeValue($value, ?craft\base\ElementInterface $element = null) must be compatible with craft\base\Field::normalizeValue(mixed $value, ?craft\base\ElementInterface $element = null): mixed

PHP Compile Error – yii\base\ErrorException Declaration of studioespresso\daterange\fields\DateRangeField::serializeValue($value, ?craft\base\ElementInterface $element = null) must be compatible with craft\base\Field::serializeValue(mixed $value, ?craft\base\ElementInterface $element = null): mixed

PHP Compile Error – yii\base\ErrorException Declaration of studioespresso\daterange\fields\DateRangeField::getContentGqlType() must be compatible with craft\base\Field::getContentGqlType(): GraphQL\Type\Definition\Type|array

Thanks,

piotrpog commented 2 years ago

Same issue here, error shows up when i open "new field" page in control panel.

janhenckens commented 2 years ago

Hey @cloudgrayau @piotrpog, sorry about that, I forgot to push a tag for the stable Craft 4 release. Added some extra GraphQL fixes too, can you try with 3.0.1?

Thanks!