From 35477f7c6d5c3679cf2ed904a81d8c009bfb1068 Mon Sep 17 00:00:00 2001 From: Pollora maintainer Date: Sat, 21 Nov 2026 16:55:08 +0100 Subject: [PATCH] refactor: make 1 classes final (CONV-08) --- CHANGELOG.md | 4 ++++ src/Infrastructure/Services/CircularDependencyException.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec98bb8..bce54a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- `CircularDependencyException` is now `final` (CONV-08). This is a restriction of the API for anyone who extended it: a class that is not an extension point can no longer be subclassed; compose it instead + ## [0.2.0] - 2026-11-19 ### Changed diff --git a/src/Infrastructure/Services/CircularDependencyException.php b/src/Infrastructure/Services/CircularDependencyException.php index 6eabcfe..778b32d 100644 --- a/src/Infrastructure/Services/CircularDependencyException.php +++ b/src/Infrastructure/Services/CircularDependencyException.php @@ -7,4 +7,4 @@ /** * Exception thrown when circular dependency is detected during instantiation */ -class CircularDependencyException extends \RuntimeException {} +final class CircularDependencyException extends \RuntimeException {}