Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
7e12ae57
Commit
7e12ae57
authored
Nov 26, 2013
by
Kamil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue #1315
parent
e2ff98ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
ErrorException.php
framework/yii/base/ErrorException.php
+12
-13
No files found.
framework/yii/base/ErrorException.php
View file @
7e12ae57
...
@@ -20,7 +20,7 @@ class ErrorException extends Exception
...
@@ -20,7 +20,7 @@ class ErrorException extends Exception
protected
$severity
;
protected
$severity
;
/**
/**
* Constructs the exception
* Constructs the exception
.
* @link http://php.net/manual/en/errorexception.construct.php
* @link http://php.net/manual/en/errorexception.construct.php
* @param $message [optional]
* @param $message [optional]
* @param $code [optional]
* @param $code [optional]
...
@@ -51,7 +51,6 @@ class ErrorException extends Exception
...
@@ -51,7 +51,6 @@ class ErrorException extends Exception
}
}
// XDebug has a different key name
// XDebug has a different key name
$frame
[
'args'
]
=
[];
if
(
isset
(
$frame
[
'params'
])
&&
!
isset
(
$frame
[
'args'
]))
{
if
(
isset
(
$frame
[
'params'
])
&&
!
isset
(
$frame
[
'args'
]))
{
$frame
[
'args'
]
=
$frame
[
'params'
];
$frame
[
'args'
]
=
$frame
[
'params'
];
}
}
...
@@ -64,17 +63,7 @@ class ErrorException extends Exception
...
@@ -64,17 +63,7 @@ class ErrorException extends Exception
}
}
/**
/**
* Gets the exception severity
* Returns if error is one of fatal type.
* @link http://php.net/manual/en/errorexception.getseverity.php
* @return int the severity level of the exception.
*/
final
public
function
getSeverity
()
{
return
$this
->
severity
;
}
/**
* Returns if error is one of fatal type
*
*
* @param array $error error got from error_get_last()
* @param array $error error got from error_get_last()
* @return bool if error is one of fatal type
* @return bool if error is one of fatal type
...
@@ -85,6 +74,16 @@ class ErrorException extends Exception
...
@@ -85,6 +74,16 @@ class ErrorException extends Exception
}
}
/**
/**
* Gets the exception severity.
* @link http://php.net/manual/en/errorexception.getseverity.php
* @return int the severity level of the exception.
*/
final
public
function
getSeverity
()
{
return
$this
->
severity
;
}
/**
* @return string the user-friendly name of this exception
* @return string the user-friendly name of this exception
*/
*/
public
function
getName
()
public
function
getName
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment