You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
messages: recommend ::new() everywhere, document why it exists
Constructor errors said "use new SmartArrayHtml($data)" but the docs
teach SmartArrayHtml::new(). Standardized every message on ::new(),
and the docblocks now say it exists for chaining on pre-8.4 PHP.
Also switched strings with escaped \$ to single quotes where nothing
needed interpolating.
'SmartArray with true' => [SmartArray::class, true, 'Cannot create SmartArray with useSmartStrings=true. Use new SmartArrayHtml($data) instead.'],
117
-
'SmartArrayHtml with false' => [SmartArrayHtml::class, false, 'Cannot create SmartArrayHtml with useSmartStrings=false. Use new SmartArray($data) instead.'],
116
+
'SmartArray with true' => [SmartArray::class, true, 'Cannot create SmartArray with useSmartStrings=true. Use SmartArrayHtml::new($data) instead.'],
117
+
'SmartArrayHtml with false' => [SmartArrayHtml::class, false, 'Cannot create SmartArrayHtml with useSmartStrings=false. Use SmartArray::new($data) instead.'],
0 commit comments