From ff21fd5ffe64f8f88c9c4de608a0278663481de2 Mon Sep 17 00:00:00 2001 From: SerhiiCho Date: Mon, 22 Jan 2024 18:35:56 +0200 Subject: [PATCH] Add comment description to the case in `ParserOption` ENUM --- docs/changelog.md | 8 +++++++- src/ParserOption.php | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index f6549c6..0a7b5e6 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,11 @@ # Release Notes +## v2.9.4 (2024-01-22) + +- Add comment description to the case in `ParserOption` ENUM + +---- + ## v2.9.3 (2024-01-12) - Moved `phpunit` from "require" to "require-dev" in `composer.json` file @@ -184,4 +190,4 @@ ## v1.0 (2019-09-24) -- First ever version +- First ever version \ No newline at end of file diff --git a/src/ParserOption.php b/src/ParserOption.php index 87f6ff0..38bf00b 100644 --- a/src/ParserOption.php +++ b/src/ParserOption.php @@ -6,5 +6,11 @@ enum ParserOption { + /** + * If you pass this option, the parser, instead of getting + * the content of the provided file path, will parse the + * provided string. This option is useful when you want + * to parse a string instead of a file. + */ case PARSE_TEXT; }