Skip to content

Commit e340b2f

Browse files
committed
Fix short_tag_notice comparaison
1 parent 6dc4b2d commit e340b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_language_scanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,7 @@ string:
20322032

20332033
<INITIAL>"<?" {
20342034
if (CG(short_tags)) {
2035-
if (!CG(short_tags_notice)) {
2035+
if (CG(short_tags_notice) == IS_FALSE) {
20362036
zend_error(E_DEPRECATED, "PHP Short tags are deprecated as of PHP 7.4 and will be removed in a future version");
20372037
CG(short_tags_notice) = IS_TRUE;
20382038
}

0 commit comments

Comments
 (0)