1
0
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:
Emanuil Rusev 2014-02-25 00:48:28 +02:00
commit 1734f6fc85

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