symfony/symfony — pull request #11727 by peter-gribanov (2014-08-21 09:53:23+00:00)
Title: [Filesystem] fixed minor bugs

| Q | A
| ------------- | ---
| Fixed tickets | fixed minor bugs
| License | MIT

In the options, expected boolean value. It makes no sense to check for the existence of options, and then check the value.

```php
(isset($options['delete']) && $options['delete'])) === !empty($options['delete'])
```
Method `Filesystem::copy()` expects third argument boolean value. In the current implementation, there can get the value of another type. Now this is not terrible, but it can cause problems in the future.