Skip to content

Commit b039190

Browse files
HBSpylpil
authored andcommitted
Update php.snippets
sorry to make a mistake in the last pr
1 parent dd54776 commit b039190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UltiSnips/php.snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import vim
66
# Set g:ultisnips_php_scalar_types to 1 if you'd like to enable PHP 7's scalar types for return values
77
def isPHPScalarTypesEnabled():
88
isEnabled = vim.eval("get(g:, 'ultisnips_php_scalar_types', 0)") == "1"
9-
return isEnabled or re.match('r<\?php\s+declare\(strict_types=[01]\);', '\n'.join(vim.current.window.buffer))
9+
return isEnabled or re.match(r'<\?php\s+declare\(strict_types=[01]\);', '\n'.join(vim.current.window.buffer))
1010
endglobal
1111

1212
## Snippets from SnipMate, taken from

0 commit comments

Comments
 (0)