Skip to content

Commit

Permalink
changelog and trigge deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Apr 5, 2022
1 parent 56abc51 commit 19cc66b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`.
Expand Down
14 changes: 8 additions & 6 deletions src/Lexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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)
{
Expand All @@ -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)
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 19cc66b

Please sign in to comment.