Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor CS cleanup #1815

Merged
merged 17 commits into from
Aug 18, 2022
Prev Previous commit
Next Next commit
remove code scheduled to be removed
mvorisek committed Aug 18, 2022
commit 33d0cafc4965b8350bfd6a2c77c7fc882276da1e
16 changes: 0 additions & 16 deletions src/HtmlTemplate.php
Original file line number Diff line number Diff line change
@@ -204,10 +204,6 @@ protected function _setOrAppend($tag, $value = null, bool $encodeHtml = true, bo
*/
public function set($tag, $value = null): self
{
if (func_num_args() > 2) { // remove in v2.5
throw new \Error('3rd param $encode is no longer supported, use dangerouslySetHtml method instead');
}

$this->_setOrAppend($tag, $value, true, false);

return $this;
@@ -222,10 +218,6 @@ public function set($tag, $value = null): self
*/
public function trySet($tag, $value = null): self
{
if (func_num_args() > 2) { // remove in v2.5
throw new \Error('3rd param $encode is no longer supported, use tryDangerouslySetHtml method instead');
}

$this->_setOrAppend($tag, $value, true, false, false);

return $this;
@@ -267,10 +259,6 @@ public function tryDangerouslySetHtml($tag, $value = null): self
*/
public function append($tag, $value): self
{
if (func_num_args() > 2) { // remove in v2.5
throw new \Error('3rd param $encode is no longer supported, use dangerouslyAppendHtml method instead');
}

$this->_setOrAppend($tag, $value, true, true);

return $this;
@@ -285,10 +273,6 @@ public function append($tag, $value): self
*/
public function tryAppend($tag, $value): self
{
if (func_num_args() > 2) { // remove in v2.5
throw new \Error('3rd param $encode is no longer supported, use tryDangerouslyAppendHtml method instead');
}

$this->_setOrAppend($tag, $value, true, true, false);

return $this;