mirror of
https://github.com/Icinga/icinga-php-thirdparty.git
synced 2025-10-27 01:03:53 +01:00
1.2 KiB
1.2 KiB
Upgrading to v5
-
Names involving
a, b,from, to,base, changedhave been renamed toold, newfor consistency. Here's some examples:Diff::setAB()becomesDiff::setOldNew().Diff::setA()becomesDiff::setOld().Diff::setB()becomesDiff::setNew().Diff::getA()becomesDiff::getOld().Diff::getB()becomesDiff::getNew().base,changedkeys in the result of theJsonrenderer have becomeold,new.
-
In the result of HTML renderers, classes of rows of line numbers has been changed. You may have to change your CSS if you have some customized things depend on these.
<th class="f-num">(from-number) becomes<th class="n-new">(number-new).<th class="t-num">(to-number) becomes<th class="n-old">(number-old).
-
The
tag(sometimes calledop) inJsontemplate is now inintform by default. To get previous behavior, set the renderer optionoutputTagAsStringtotrue. -
The
tag(sometimes calledop) inDiff::getGroupedOpcodes()'s results are now inintform. The corresponding meaning could be found in jfcherng/php-sequence-matcher.