Skip to content

Commit ef732a5

Browse files
authored
[TASK] Make OutputFormat final (#1128)
This class is not intended to be extended, and it's intended to be created using the factory methods anyway. (Also, we most probably won't need to have mocks of this class in the tests as it's mostly a data object.)
1 parent 9d2fd8e commit ef732a5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Please also have a look at our
2121

2222
### Changed
2323

24+
- Make `OutputFormat` `final` (#1128)
2425
- Mark the `OutputFormat` constructor as `@internal` (#1131)
2526
- Mark `OutputFormatter` as `@internal` (#896)
2627
- Make `Selector` a `Renderable` (#1017)

src/OutputFormat.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
namespace Sabberworm\CSS;
66

7-
/**
8-
* Extending this class is deprecated in version 8.8.0; it will be made `final` in version 9.0.0.
9-
*/
10-
class OutputFormat
7+
final class OutputFormat
118
{
129
/**
1310
* Value format: `"` means double-quote, `'` means single-quote

0 commit comments

Comments
 (0)