mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Merge pull request #124 from hkdobrev/psr-2-bc
Add set_breaks_enabled() as an alias for BC
This commit is contained in:
commit
1734f6fc85
@ -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