Skip to content

Commit

Permalink
Use more precise type in SerializableException (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Staab <[email protected]>
  • Loading branch information
staabm and clxmstaab authored Mar 5, 2024
1 parent dc7a979 commit 07fb5cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/sysmonitor/SerializableException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class SerializableException
{
/**
* @var string
* @var class-string
*/
private $originClass;

Expand Down Expand Up @@ -88,7 +88,7 @@ public function getPrevious()
}

/**
* @return string
* @return class-string
*/
public function getOriginClass()
{
Expand Down
6 changes: 3 additions & 3 deletions src/sysmonitor/SystemMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ private function rateAndStore(SystemEvent $sysEvt)
// .. for cron-jobs
$sysEvt->severity = SystemEvent::SEVERITY_URGENT;

// side note: APC is not available in CLI per default,
// therefore sending it directly is a must do.
// -> $count will not be accurate in CLI and cannot be relied on.
// side note: APC is not available in CLI per default,
// therefore sending it directly is a must do.
// -> $count will not be accurate in CLI and cannot be relied on.
} elseif ($this->expectsSoap()) {
// .. for our soap-apis
$sysEvt->severity = SystemEvent::SEVERITY_URGENT;
Expand Down

0 comments on commit 07fb5cc

Please sign in to comment.