craftcms / store-hours

Manage business hours with Craft CMS.
https://plugins.craftcms.com/store-hours
MIT License
61 stars 15 forks source link

Craft installation breaks when this is installed in project config #59

Open myleshyson opened 2 months ago

myleshyson commented 2 months ago

Description

Just updated to Craft 5.3.4 and noticed my test suite started failing because of a schema version validation error for the store-hours plugin because of this change.

The project config tries to validate the schema version of the plugin by referencing it's $schemaVersion property. However that property is blank on this plugin. I think $schemaVersion just needs to be added to the Plugin class with the current version.

myleshyson commented 2 months ago

Thought I should note, I'm also experiencing this bug in installing craft fresh outside of a test context when this plugin is included in the project config.