| @@ -206,7 +206,7 @@ discard block | ||
| 206 | 206 | /** | 
| 207 | 207 | * Specify the includes. | 
| 208 | 208 | * | 
| 209 | - * @param array|string $includes Array or string of resources to include. | |
| 209 | + * @param string $includes Array or string of resources to include. | |
| 210 | 210 | * | 
| 211 | 211 | * @return $this | 
| 212 | 212 | */ | 
| @@ -222,7 +222,7 @@ discard block | ||
| 222 | 222 | /** | 
| 223 | 223 | * Specify the excludes. | 
| 224 | 224 | * | 
| 225 | - * @param array|string $excludes Array or string of resources to exclude. | |
| 225 | + * @param string $excludes Array or string of resources to exclude. | |
| 226 | 226 | * @return $this | 
| 227 | 227 | */ | 
| 228 | 228 | public function parseExcludes($excludes) | 
| @@ -400,7 +400,7 @@ discard block | ||
| 400 | 400 | * Determine if a given string starts with a given substring. | 
| 401 | 401 | * | 
| 402 | 402 | * @param string $haystack | 
| 403 | - * @param string|array $needles | |
| 403 | + * @param string[] $needles | |
| 404 | 404 | * @return bool | 
| 405 | 405 | */ | 
| 406 | 406 | protected function startsWith($haystack, $needles) | 
| @@ -2,7 +2,6 @@ discard block | ||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Fractalistic; | 
| 4 | 4 | |
| 5 | -use Traversable; | |
| 6 | 5 | use JsonSerializable; | 
| 7 | 6 | use League\Fractal\Manager; | 
| 8 | 7 | use League\Fractal\Pagination\CursorInterface; | 
| @@ -10,6 +9,7 @@ discard block | ||
| 10 | 9 | use League\Fractal\Serializer\SerializerAbstract; | 
| 11 | 10 | use Spatie\Fractalistic\Exceptions\InvalidTransformation; | 
| 12 | 11 | use Spatie\Fractalistic\Exceptions\NoTransformerSpecified; | 
| 12 | +use Traversable; | |
| 13 | 13 | |
| 14 | 14 | class Fractal implements JsonSerializable | 
| 15 | 15 |  { |