We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a0e8c0 commit fda5eb1Copy full SHA for fda5eb1
src/phpFastCache/Exceptions/phpFastCacheIOException.php
@@ -17,8 +17,21 @@
17
/**
18
* Class phpFastCacheIOException
19
* @package phpFastCache\Exceptions
20
+ * @since v6
21
*/
22
class phpFastCacheIOException extends phpFastCacheCoreException
23
{
-
24
+ /**
25
+ * @inheritdoc
26
+ */
27
+ public function __construct($message = "", $code = 0, $previous = null)
28
+ {
29
+ $lastError = error_get_last();
30
+ if($lastError){
31
+ $message .= "\n";
32
+ $message .= "Additional information provided by error_get_last():\n";
33
+ $message .= "{$lastError['message']} in {$lastError['file']} line {$lastError['line']}";
34
+ }
35
+ parent::__construct($message, $code, $previous);
36
37
}
0 commit comments