diff --git a/CHANGELOG.md b/CHANGELOG.md index b3430a2..40c95cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## 2.9.0 (5. April 2022) + ++ [#58](https://github.com/nadar/quill-delta-parser/pull/58/files) Renamed misspelled method `loadBuiltinListeneres()` to `loadBuiltinListeners()` and `renderListeneres()` to `renderListeners()`. The old methods are still available for backwards compatibility, but deprecated and will be removed in 3.0. + ## 2.8.0 (8. March 2022) + [#56](https://github.com/nadar/quill-delta-parser/pull/56) Provide new method to override existing listeners with `overwriteListener()`. diff --git a/src/Lexer.php b/src/Lexer.php index 20e6f61..e84cb56 100644 --- a/src/Lexer.php +++ b/src/Lexer.php @@ -157,10 +157,11 @@ public function loadBuiltinListeners() /** * Alias for loadBuiltinListeners() for compatibility - * @deprecated will be removed in 3.0 + * @deprecated will be removed in 3.0, use loadBuiltinListeners() instead. */ public function loadBuiltinListeneres() { + trigger_error("loadBuiltinListeneres() is deprecated, use loadBuiltinListeners() instead.", E_USER_NOTICE); return $this->loadBuiltinListeners(); } @@ -323,10 +324,10 @@ protected function normalizeInsert($insert) } /** - * Undocumented function + * Remove the last newline expression from a string * - * @param [type] $insert - * @return void + * @param string $insert + * @return string */ protected function removeLastNewline($insert) { @@ -344,7 +345,7 @@ protected function removeLastNewline($insert) * Undocumented function * * @param Line $line - * @param [type] $type + * @param string $type * @return void */ protected function processListeners(Line $line, $type) @@ -373,10 +374,11 @@ protected function renderListeners($type) /** * Alias for renderListeners() for compatibility - * @deprecated will be removed in 3.0 + * @deprecated will be removed in 3.0, used renderListeners() instead. */ protected function renderListeneres($type) { + trigger_error("renderListeneres() is deprecated, use renderListeners() instead.", E_USER_NOTICE); return $this->renderListeners($type); }