Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15525372
D18151.id43673.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
757 B
Referenced Files
None
Subscribers
None
D18151.id43673.diff
View Options
diff --git a/scripts/phutil_symbols.php b/scripts/phutil_symbols.php
--- a/scripts/phutil_symbols.php
+++ b/scripts/phutil_symbols.php
@@ -531,6 +531,15 @@
'self' => true,
'PhutilBootloader' => true,
+
+ // PHP7 defines these new parent classes of "Exception", but they do not
+ // exist prior to PHP7. It's possible to use them safely in PHP5, in
+ // some cases, to write code which is compatible with either PHP5 or
+ // PHP7, but it s hard for us tell if a particular use is safe or not.
+ // For now, assume users know what they're doing and that uses are safe.
+ // For discussion, see T12855.
+ 'Throwable' => true,
+ 'Error' => true,
),
'function' => array_filter(
array(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 22, 1:55 PM (1 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7684316
Default Alt Text
D18151.id43673.diff (757 B)
Attached To
Mode
D18151: Don't warn about use of "Throwable" under PHP5
Attached
Detach File
Event Timeline
Log In to Comment