Skip to content

Commit 09a66b7

Browse files
author
Ankit Saini
authored
Merge pull request #608 from postmanlabs/fix-php-syntax-highlighing
Add `<?php` on top in non boilerplate mode to help editor with syntax highlighting.
2 parents e97f615 + d1b9733 commit 09a66b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codegens/php-guzzle/lib/phpGuzzle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function getSnippetBoilerplate (includeBoilerplate) {
147147
'use GuzzleHttp\\Psr7\\Utils;\n' +
148148
'use GuzzleHttp\\Psr7\\Request;\n';
149149
}
150-
return '';
150+
return '<?php\n';
151151
}
152152

153153
/**

codegens/php-guzzle/test/unit/phpGuzzle.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ describe('getSnippetBoilerplate method', function () {
305305
});
306306

307307
it('should return empty string for include option in false', function () {
308-
const expected = '',
308+
const expected = '<?php\n',
309309
result = getSnippetBoilerplate(false);
310310
expect(result).to.equal(expected);
311311
});

0 commit comments

Comments
 (0)