We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccc2fa1 commit dd54776Copy full SHA for dd54776
UltiSnips/php.snippets
@@ -6,7 +6,7 @@ import vim
6
# Set g:ultisnips_php_scalar_types to 1 if you'd like to enable PHP 7's scalar types for return values
7
def isPHPScalarTypesEnabled():
8
isEnabled = vim.eval("get(g:, 'ultisnips_php_scalar_types', 0)") == "1"
9
- return isEnabled or re.match('<\?php\s+declare\(strict_types=[01]\);', '\n'.join(vim.current.window.buffer))
+ return isEnabled or re.match('r<\?php\s+declare\(strict_types=[01]\);', '\n'.join(vim.current.window.buffer))
10
endglobal
11
12
## Snippets from SnipMate, taken from
0 commit comments