1
0
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:
Haralan Dobrev 2014-02-25 00:43:09 +02:00
parent 3fa9d62572
commit d8650cd77c

View File

@ -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;
# #