Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Add method_exists check #139

Merged
merged 1 commit into from
Oct 23, 2019
Merged

Conversation

blobaugh
Copy link

When setting meta, a method was called using a variable name (name of
meta). However, there may be non-standard meta fields, which cause a
fatal error when an attempt to call a non-existant method is used. To
prevent this there is now a check to ensure the method exists before
it is used.

When setting meta, a method was called using a variable name (name of
meta). However, there may be non-standard meta fields, which cause a
fatal error when an attempt to call a non-existant method is used. To
prevent this there is now a check to ensure the method exists before
it is used.
Copy link
Contributor

@stevegrunwell stevegrunwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thank you!

@stevegrunwell stevegrunwell merged commit 040a53e into liquidweb:develop Oct 23, 2019
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