Closed bram123 closed 8 months ago
Add ResultInterface template for the data field, for strict typing in the Check classes.
data
Started with DiskFree and DiskUsage checks.
If acceptable I will continue with the other checks.
Signed-off-by: Bram Leeda bram@123inkt.nl
Had to add @template to all Result implementation classes (success/warning/skip/failure) and all interfaces. For some reason psalm did not let me set the @return docblock to ResultInterface, I had to set it to Success|Warning|Failure
Add ResultInterface template for the
data
field, for strict typing in the Check classes.Started with DiskFree and DiskUsage checks.
data
value/structure so it's visible what kind of data is returned as wellIf acceptable I will continue with the other checks.
Signed-off-by: Bram Leeda bram@123inkt.nl