Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Fix NullLockStore (disabling of Stache locking) #10560

Merged
merged 1 commit into from
Aug 5, 2024
Merged

[5.x] Fix NullLockStore (disabling of Stache locking) #10560

merged 1 commit into from
Aug 5, 2024

Conversation

925dk
Copy link
Contributor

@925dk 925dk commented Aug 3, 2024

If statamic.stache.lock.enabled is false PHP bails with:

Got error 'PHP message: PHP Fatal error: Declaration of Statamic\\Stache\\NullLockStore::exists(Symfony\\Component\\Lock\\Key $key) must be compatible with Symfony\\Component\\Lock\\PersistingStoreInterface::exists(Symfony\\Component\\Lock\\Key $key): bool in /vendor/statamic/cms/src/Stache/NullLockStore.php on line 20'

This patch fixes up the NullLockStore method signatures to match interfaces.

@jasonvarga jasonvarga merged commit 3a990e3 into statamic:5.x Aug 5, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants