mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 00:36:38 +00:00
I encountered this in Drupal 8, where cells implemented the
MarkupInterface. It was objects that, when cast to a string,
returned the translated string.
Before 5ca540daa7, this new test
would fail.
14 lines
230 B
PHP
14 lines
230 B
PHP
<?php
|
|
|
|
namespace ParseCsv\tests\methods;
|
|
|
|
/**
|
|
* Class HasToString is just a helper to test if cells can be objects.
|
|
*/
|
|
class ObjectThatHasToStringMethod {
|
|
|
|
public function __toString() {
|
|
return 'some value';
|
|
}
|
|
}
|