From 7bb81b99ab952c50bd3e3b4b43813a74dae8def6 Mon Sep 17 00:00:00 2001 From: aVadim Date: Tue, 13 Aug 2024 22:15:25 +0300 Subject: [PATCH] https://github.com/aVadim483/fast-excel-writer/issues/75 --- src/FastExcelWriter/Area.php | 2 +- src/FastExcelWriter/Sheet.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FastExcelWriter/Area.php b/src/FastExcelWriter/Area.php index 0e723ec..4c4af8a 100644 --- a/src/FastExcelWriter/Area.php +++ b/src/FastExcelWriter/Area.php @@ -549,7 +549,7 @@ public function __call(string $name, array $arguments) } $trace = debug_backtrace(); - $error = 'Uncaught Error: Call to undefined method ' . get_class() . '::' . $name + $error = 'Uncaught Error: Call to undefined method ' . __CLASS__ . '::' . $name . ' (called in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'] . ')'; throw new \Exception($error); } diff --git a/src/FastExcelWriter/Sheet.php b/src/FastExcelWriter/Sheet.php index 245c9c8..5af9f3d 100644 --- a/src/FastExcelWriter/Sheet.php +++ b/src/FastExcelWriter/Sheet.php @@ -248,7 +248,7 @@ public function __get($name) $trace = debug_backtrace(); trigger_error( - 'Undefined property: ' . get_class() . '::$' . $name . + 'Undefined property: ' . __CLASS__ . '::$' . $name . ' (call in file ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'] . ') ', E_USER_NOTICE);