mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Add set_breaks_enabled() as an alias for BC
Backwards-compatibility is kept with versions before PSR-2 naming. See http://git.io/SsTarw
This commit is contained in:
parent
3fa9d62572
commit
d8650cd77c
@ -38,6 +38,16 @@ class Parsedown
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For backwards compatibility before PSR-2 naming.
|
||||||
|
*
|
||||||
|
* @deprecated Use setBreaksEnabled instead.
|
||||||
|
*/
|
||||||
|
function set_breaks_enabled($breaks_enabled)
|
||||||
|
{
|
||||||
|
return $this->setBreaksEnabled($breaks_enabled);
|
||||||
|
}
|
||||||
|
|
||||||
private $breaksEnabled = false;
|
private $breaksEnabled = false;
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user