Skip to content

Move the Empty Check on $cassetteName Up #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 6, 2018

Conversation

chrisguitarguy
Copy link
Contributor

So we don't do substr on a null and throw a TypeError

Closes #29

I added a test case to reproduce this issue first if you'd like to see it fail.

Acts as a gaurd so no `substr(...)` operations are performed on a null
and break things.
@andrej-griniuk
Copy link

Also faced this issue. Anything else needs to be done here to get it merged @adri @renatomefi ?

@renatomefi renatomefi merged commit 299aaf8 into php-vcr:master Jul 6, 2018
@renatomefi
Copy link
Member

Thank you @chrisguitarguy!

@andrej-griniuk you can now update to v3.2.1

@chrisguitarguy chrisguitarguy deleted the fix_substr branch July 6, 2018 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants