Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F925605
D110.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, May 20, 10:01 AM
Size
635 B
Mime Type
text/x-diff
Expires
Wed, May 21, 10:01 AM (17 h, 27 m)
Engine
blob
Format
Raw Data
Handle
634964
Attached To
D110: INP-1460 - Check if object is castable to string in the "m_PrintCurrentParams" tag
D110.diff
View Options
Index: branches/5.2.x/core/kernel/processors/main_processor.php
===================================================================
--- branches/5.2.x/core/kernel/processors/main_processor.php
+++ branches/5.2.x/core/kernel/processors/main_processor.php
@@ -1176,6 +1176,10 @@
$current_params = $this->Application->Parser->Params;
foreach ($current_params as $param_name => $param_value) {
+ if ( is_object($param_value) && !method_exists($param_value, '__toString') ) {
+ $param_value = 'ClassName: ' . get_class($param_value);
+ }
+
$current_params[$param_name] = $param_name . ' = "' . $param_value . '"';
}
Event Timeline
Log In to Comment