Merge pull request #273 from Icinga/fix/php74-compat

Fix PHP 7.4 compatibility
This commit is contained in:
Johannes Meyer 2020-02-27 13:25:50 +01:00 committed by GitHub
commit 6c4b75acb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -118,8 +118,6 @@ abstract class Node
99 => 'PENDING'
);
abstract public function __construct($object);
/**
* Set whether to treat acknowledged hosts/services always as UP/OK
*

View file

@ -150,7 +150,7 @@ class Diff_Renderer_Html_Array extends Diff_Renderer_Abstract
{
$start = 0;
$limit = min(strlen($fromLine), strlen($toLine));
while($start < $limit && $fromLine{$start} == $toLine{$start}) {
while($start < $limit && $fromLine[$start] == $toLine[$start]) {
++$start;
}
$end = -1;