aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/php_code_actions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/php_code_actions.lua')
-rw-r--r--lua/alpha/php_code_actions.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/alpha/php_code_actions.lua b/lua/alpha/php_code_actions.lua
index 998fcb5..5bca3c3 100644
--- a/lua/alpha/php_code_actions.lua
+++ b/lua/alpha/php_code_actions.lua
@@ -38,6 +38,9 @@ local php_setter_getter_actions = {
generator = {
fn = function(context)
local cursor_node = utils.get_master_node()
+ if cursor_node == nil then
+ return
+ end
if cursor_node.type(cursor_node) ~= "property_declaration" then
return
end