Skip to content

✨ feat(cache): add strict mode and validation for PDO lock providers - #26

Merged
abmmhasan merged 2 commits into
mainfrom
feature/update-26
Aug 23, 2026
Merged

✨ feat(cache): add strict mode and validation for PDO lock providers #26
abmmhasan merged 2 commits into
mainfrom
feature/update-26

Conversation

@abmmhasan

@abmmhasan abmmhasan commented Aug 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Introduce strict mode to PdoLockProvider to enforce native PDO locking without fallbacks ✨
  • Add UnsupportedPdoLockDriver exception for unsupported PDO drivers 🐛
  • Add PdoLockProvider::supportsNativeDriver() method to check driver capabilities 💡
  • Update documentation and unit tests for strict and fallback PDO locking behaviors 📝

Change

Type

  • Bug fix
  • New feature
  • Refactor
  • Performance
  • Security or reliability
  • Documentation or examples
  • Dependency, CI or tooling
  • Other

Behavior and Compatibility

  • No observable behavior changed
  • Existing behavior was corrected
  • New behavior was introduced
  • Public API or documented behavior changed
  • Backward compatibility may be affected
  • PHP, extension, platform or dependency requirements changed

Validation

  • composer ic:ci
Focused validation
  • composer ic:test:syntax
  • composer ic:test:code
  • composer ic:test:lint
  • composer ic:test:sniff
  • composer ic:test:duplicates
  • composer ic:test:probe
  • composer ic:test:comments
  • composer ic:test:architecture
  • composer ic:test:static
  • composer ic:test:security
  • composer ic:test:refactor

Performance

  • Relevant benchmarks were added or updated
  • Results were compared against a relevant baseline
  • composer ic:benchmark
  • composer ic:bench:quick
  • composer ic:bench:chart

Implementation Notes

Review Focus

Checklist

  • The change is focused and excludes unrelated modifications.
  • Tests cover new, corrected and regression-prone behavior.
  • Public API and backward-compatibility implications were considered.
  • Documentation, examples and type information were updated where required.
  • Performance claims are supported by reproducible benchmarks.
  • No credentials, secrets, personal data or sensitive debug output are included.
  • I followed CONTRIBUTING.md and the engineering principles.

- Remove captainhook.json configuration file 🔥
- Introduce strict mode to `PdoLockProvider` to enforce native PDO locking without fallbacks ✨
- Add `UnsupportedPdoLockDriver` exception for unsupported PDO drivers 🐛
- Add `PdoLockProvider::supportsNativeDriver()` method to check driver capabilities 💡
- Update documentation and unit tests for strict and fallback PDO locking behaviors 📝
@abmmhasan
abmmhasan merged commit 481c664 into main Aug 23, 2026
12 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.

1 participant