Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F872033
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
Thu, May 8, 8:01 AM
Size
635 B
Mime Type
text/x-diff
Expires
Fri, May 9, 8:01 AM (9 h, 22 m)
Engine
blob
Format
Raw Data
Handle
617770
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