From 660bef00a2ae2baee6a705a6422029515b4e6c57 Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Thu, 13 Apr 2023 14:28:49 +0200 Subject: [PATCH] Class referenced with incorrect case --- src/Daemon.php | 6 +++--- src/GraphStyleLinePoints.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Daemon.php b/src/Daemon.php index 3a39368..418b2e8 100644 --- a/src/Daemon.php +++ b/src/Daemon.php @@ -51,7 +51,7 @@ class Daemon */ public function start($name, $callable, $params = array()) { - $file = new file(); + $file = new File(); if (! $file->is_writeable($this->runDir)) { throw new \Exception(sprintf( "Run Directory '%s' is not writeable", @@ -73,7 +73,7 @@ class Daemon ), 500); } } - $fork = new fork(); + $fork = new Fork(); $pid = $fork->startDetachedChild($name, $callable, $params); file_put_contents($this->runDir . "/$name.pid", $pid); return $pid; @@ -89,7 +89,7 @@ class Daemon */ public function stop($name, $maxWaitStop = 3, $maxWaitKill = 3) { - $file = new file(); + $file = new File(); if (! $file->is_writeable($this->runDir)) { throw new \Exception(sprintf( "Run Directory '%s' is not writeable", diff --git a/src/GraphStyleLinePoints.php b/src/GraphStyleLinePoints.php index a263433..96d9ffa 100644 --- a/src/GraphStyleLinePoints.php +++ b/src/GraphStyleLinePoints.php @@ -197,7 +197,7 @@ class GraphStyleLinePoints $this->pointShape = $this->allowedShapes[ ($number % count($this->allowedShapes))]; } - $palette = graphPalette::getPalette($this->palette); + $palette = GraphPalette::getPalette($this->palette); if ($this->pointBgcolor === null) { $this->pointBgcolor = $palette[($number % count($palette))]["bgcolor"]; }