```php
$this->paths = array_map(
    function ($path) {
        return (string) $path;
    },
    $paths
);
```