Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Fixed issue with InvalidArgumentException when a string is passed as chunk-size #28

Merged
merged 1 commit into from
Nov 15, 2016

Conversation

mburtscher
Copy link
Member

InvalidArgumentException has been used incorrectly in this case. It only takes a message argument. When passing in a string, PHP will crash with the following exception:

PHP Fatal error: Uncaught Error: Wrong parameters for InvalidArgumentException([string $message [, long $code [, Throwable $previous = NULL]]]) in /var/www/project/vendor/fusonic/linq/src/Fusonic/Linq/Linq.php:186

@davidroth davidroth merged commit 659b714 into master Nov 15, 2016
@mburtscher mburtscher deleted the fix-chunk-size-bug branch November 15, 2016 13:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants