mirror of
https://github.com/Icinga/icinga-php-thirdparty.git
synced 2025-08-18 16:18:26 +02:00
1.2 KiB
1.2 KiB
Upgrading to v5
-
Names involving
a, b
,from, to
,base, changed
have been renamed toold, new
for 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
,changed
keys in the result of theJson
renderer 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
) inJson
template is now inint
form by default. To get previous behavior, set the renderer optionoutputTagAsString
totrue
. -
The
tag
(sometimes calledop
) inDiff::getGroupedOpcodes()
's results are now inint
form. The corresponding meaning could be found in jfcherng/php-sequence-matcher.