feature/537 Object __toString() in public static function isNonEmptyString($value)
This commit is contained in:
parent
3681a3421a
commit
4f7f97341c
@ -61,6 +61,9 @@ class CellHelper
|
||||
*/
|
||||
public static function isNonEmptyString($value)
|
||||
{
|
||||
if (is_object($value) && method_exists($value, '__toString')) {
|
||||
$value = $value->__toString();
|
||||
}
|
||||
return (gettype($value) === 'string' && $value !== '');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user