Skip to content

Commit

Permalink
Merge branch 'master' into deprecated-string-var
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant authored Nov 23, 2024
2 parents be585d7 + 12559a5 commit 4947755
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1]
php: [8.3]
steps:
-
name: Checkout Code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
skip-web-check: 1
database: mariadb:10.5
-
php-version: 8.1
php-version: 8.2
name: Unit
skip-web-check: 1
database: mysql:8.0
-
php-version: 8.1
php-version: 8.2
name: Web
skip-unit-check: 1
database: mariadb:10.11
Expand Down
4 changes: 2 additions & 2 deletions LibreNMS/Util/DynamicConfigItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace LibreNMS\Util;

use LibreNMS\Config;
use App\Facades\LibrenmsConfig;
use Validator;

#[\AllowDynamicProperties]
Expand All @@ -50,7 +50,7 @@ class DynamicConfigItem implements \ArrayAccess
public function __construct($name, $settings = [])
{
$this->name = $name;
$this->value = Config::get($this->name, $this->default);
$this->value = LibrenmsConfig::get($this->name, $this->default);

foreach ($settings as $key => $value) {
$this->$key = $value;
Expand Down
1 change: 0 additions & 1 deletion app/Models/Device.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ public function scopeIsDown($query)
{
return $query->where([
['status', '=', 0],
['disable_notify', '=', 0],
['ignore', '=', 0],
['disabled', '=', 0],
]);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ConfigItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Tests\Unit;

use LibreNMS\Tests\TestCase;
use LibreNMS\Util\DynamicConfigItem;
use PHPUnit\Framework\TestCase;

class ConfigItemTest extends TestCase
{
Expand Down

0 comments on commit 4947755

Please sign in to comment.