Merge 4f7f97341cf10dcea1eb3654ab3fa0d8f5bcbe7c into 799ad93d236d90f70d67b85b503a9f488eee15d8
This commit is contained in:
commit
463fbb1236
@ -61,6 +61,9 @@ class CellHelper
|
|||||||
*/
|
*/
|
||||||
public static function isNonEmptyString($value)
|
public static function isNonEmptyString($value)
|
||||||
{
|
{
|
||||||
|
if (is_object($value) && method_exists($value, '__toString')) {
|
||||||
|
$value = $value->__toString();
|
||||||
|
}
|
||||||
return (gettype($value) === 'string' && $value !== '');
|
return (gettype($value) === 'string' && $value !== '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user