Skip to content

Commit 59b9b03

Browse files
committed
fix spelling
1 parent 59b9ff2 commit 59b9b03

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Zend/tests/type_casts/non_canonical_binary_cast.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ var_dump((binary) 42);
77

88
?>
99
--EXPECTF--
10-
Deprecated: Non canonical cast (binary) is deprecated, use the (string) cast instead in %s on line %d
10+
Deprecated: Non-canonical cast (binary) is deprecated, use the (string) cast instead in %s on line %d
1111
int(42)

Zend/tests/type_casts/non_canonical_boolean_cast.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ var_dump((boolean) 42);
77

88
?>
99
--EXPECTF--
10-
Deprecated: Non canonical cast (boolean) is deprecated, use the (bool) cast instead in %s on line %d
10+
Deprecated: Non-canonical cast (boolean) is deprecated, use the (bool) cast instead in %s on line %d
1111
int(42)

Zend/tests/type_casts/non_canonical_double_cast.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ var_dump((double) 42);
77

88
?>
99
--EXPECTF--
10-
Deprecated: Non canonical cast (double) is deprecated, use the (float) cast instead in %s on line %d
10+
Deprecated: Non-canonical cast (double) is deprecated, use the (float) cast instead in %s on line %d
1111
int(42)

Zend/tests/type_casts/non_canonical_integer_cast.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ var_dump((integer) "42");
77

88
?>
99
--EXPECTF--
10-
Deprecated: Non canonical cast (integer) is deprecated, use the (int) cast instead in %s on line %d
10+
Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in %s on line %d
1111
int(42)

Zend/zend_language_scanner.l

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ OPTIONAL_WHITESPACE_OR_COMMENTS ({WHITESPACE}|{MULTI_LINE_COMMENT}|{SINGLE_LINE_
16351635

16361636
<ST_IN_SCRIPTING>"("{TABS_AND_SPACES}("integer"){TABS_AND_SPACES}")" {
16371637
if (PARSER_MODE()) {
1638-
zend_error(E_DEPRECATED, "Non canonical cast (integer) is deprecated, use the (int) cast instead");
1638+
zend_error(E_DEPRECATED, "Non-canonical cast (integer) is deprecated, use the (int) cast instead");
16391639
}
16401640
RETURN_TOKEN(T_INT_CAST);
16411641
}
@@ -1646,7 +1646,7 @@ OPTIONAL_WHITESPACE_OR_COMMENTS ({WHITESPACE}|{MULTI_LINE_COMMENT}|{SINGLE_LINE_
16461646

16471647
<ST_IN_SCRIPTING>"("{TABS_AND_SPACES}("double"){TABS_AND_SPACES}")" {
16481648
if (PARSER_MODE()) {
1649-
zend_error(E_DEPRECATED, "Non canonical cast (double) is deprecated, use the (float) cast instead");
1649+
zend_error(E_DEPRECATED, "Non-canonical cast (double) is deprecated, use the (float) cast instead");
16501650
}
16511651
RETURN_TOKEN(T_INT_CAST);
16521652
}
@@ -1665,7 +1665,7 @@ OPTIONAL_WHITESPACE_OR_COMMENTS ({WHITESPACE}|{MULTI_LINE_COMMENT}|{SINGLE_LINE_
16651665

16661666
<ST_IN_SCRIPTING>"("{TABS_AND_SPACES}("binary"){TABS_AND_SPACES}")" {
16671667
if (PARSER_MODE()) {
1668-
zend_error(E_DEPRECATED, "Non canonical cast (binary) is deprecated, use the (string) cast instead");
1668+
zend_error(E_DEPRECATED, "Non-canonical cast (binary) is deprecated, use the (string) cast instead");
16691669
}
16701670
RETURN_TOKEN(T_INT_CAST);
16711671
}
@@ -1684,7 +1684,7 @@ OPTIONAL_WHITESPACE_OR_COMMENTS ({WHITESPACE}|{MULTI_LINE_COMMENT}|{SINGLE_LINE_
16841684

16851685
<ST_IN_SCRIPTING>"("{TABS_AND_SPACES}("boolean"){TABS_AND_SPACES}")" {
16861686
if (PARSER_MODE()) {
1687-
zend_error(E_DEPRECATED, "Non canonical cast (boolean) is deprecated, use the (bool) cast instead");
1687+
zend_error(E_DEPRECATED, "Non-canonical cast (boolean) is deprecated, use the (bool) cast instead");
16881688
}
16891689
RETURN_TOKEN(T_INT_CAST);
16901690
}

0 commit comments

Comments
 (0)