Skip to content

Commit 976c4eb

Browse files
authored
Merge pull request #366 from thephpleague/finalize-all-the-things
"Final"ize all the things
2 parents 789c662 + f5e51e0 commit 976c4eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+94
-57
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
1616
- Extracted some new interfaces from base classes:
1717
- `DocParserInterface` created from `DocParser`
1818
- `ConfigurationInterface` created from `Configuration`
19+
- `ReferenceInterface` created from `Reference`
1920

2021
### Changed
2122

@@ -31,6 +32,9 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
3132
- `DocParser`
3233
- `HtmlRenderer`
3334
- `InlineParserEngine`
35+
- `NodeWalker`
36+
- `Reference`
37+
- All of the block/inline parsers and renderers
3438
- Reduced visibility of several internal methods to `private`:
3539
- `DelimiterStack::findEarliest()`
3640
- All `protected` methods in `InlineParserEngine`

src/Block/Parser/ATXHeadingParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use League\CommonMark\Cursor;
2020
use League\CommonMark\Util\RegexHelper;
2121

22-
class ATXHeadingParser implements BlockParserInterface
22+
final class ATXHeadingParser implements BlockParserInterface
2323
{
2424
/**
2525
* @param ContextInterface $context

src/Block/Parser/BlockQuoteParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use League\CommonMark\ContextInterface;
1919
use League\CommonMark\Cursor;
2020

21-
class BlockQuoteParser implements BlockParserInterface
21+
final class BlockQuoteParser implements BlockParserInterface
2222
{
2323
/**
2424
* @param ContextInterface $context

src/Block/Parser/FencedCodeParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use League\CommonMark\ContextInterface;
1919
use League\CommonMark\Cursor;
2020

21-
class FencedCodeParser implements BlockParserInterface
21+
final class FencedCodeParser implements BlockParserInterface
2222
{
2323
/**
2424
* @param ContextInterface $context

src/Block/Parser/HtmlBlockParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use League\CommonMark\Cursor;
2121
use League\CommonMark\Util\RegexHelper;
2222

23-
class HtmlBlockParser implements BlockParserInterface
23+
final class HtmlBlockParser implements BlockParserInterface
2424
{
2525
/**
2626
* @param ContextInterface $context

src/Block/Parser/IndentedCodeParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use League\CommonMark\ContextInterface;
2020
use League\CommonMark\Cursor;
2121

22-
class IndentedCodeParser implements BlockParserInterface
22+
final class IndentedCodeParser implements BlockParserInterface
2323
{
2424
/**
2525
* @param ContextInterface $context

src/Block/Parser/LazyParagraphParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use League\CommonMark\ContextInterface;
1818
use League\CommonMark\Cursor;
1919

20-
class LazyParagraphParser implements BlockParserInterface
20+
final class LazyParagraphParser implements BlockParserInterface
2121
{
2222
/**
2323
* @param ContextInterface $context

src/Block/Parser/ListParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use League\CommonMark\Cursor;
2323
use League\CommonMark\Util\RegexHelper;
2424

25-
class ListParser implements BlockParserInterface
25+
final class ListParser implements BlockParserInterface
2626
{
2727
/**
2828
* @param ContextInterface $context

src/Block/Parser/SetExtHeadingParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use League\CommonMark\ReferenceParser;
2222
use League\CommonMark\Util\RegexHelper;
2323

24-
class SetExtHeadingParser implements BlockParserInterface
24+
final class SetExtHeadingParser implements BlockParserInterface
2525
{
2626
/**
2727
* @param ContextInterface $context

src/Block/Parser/ThematicBreakParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use League\CommonMark\Cursor;
2020
use League\CommonMark\Util\RegexHelper;
2121

22-
class ThematicBreakParser implements BlockParserInterface
22+
final class ThematicBreakParser implements BlockParserInterface
2323
{
2424
/**
2525
* @param ContextInterface $context

0 commit comments

Comments
 (0)