Skip to content

Commit 7e26296

Browse files
committed
spelling
1 parent f0b459b commit 7e26296

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Zend/tests/traits/language018.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ class C1 {
1212
}
1313
?>
1414
--EXPECTF--
15-
Fatal error: Cannot use 'abstarct' as method modifier in %s on line %d
15+
Fatal error: Cannot use 'abstract' as method modifier in %s on line %d

Zend/zend_compile.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3693,7 +3693,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
36933693
if (*overriden) {
36943694
if (zend_hash_quick_find(*overriden, arKey, nKeyLength, h, (void**) &existing_fn) == SUCCESS) {
36953695
if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
3696-
/* Make sure the trait method is compatible with previosly declared abstarct method */
3696+
/* Make sure the trait method is compatible with previosly declared abstract method */
36973697
if (!zend_traits_method_compatibility_check(fn, existing_fn TSRMLS_CC)) {
36983698
zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s",
36993699
zend_get_function_declaration(fn TSRMLS_CC),
@@ -3716,7 +3716,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
37163716
zend_hash_quick_update(*overriden, arKey, nKeyLength, h, fn, sizeof(zend_function), (void**)&fn);
37173717
return;
37183718
} else if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
3719-
/* Make sure the trait method is compatible with previosly declared abstarct method */
3719+
/* Make sure the trait method is compatible with previosly declared abstract method */
37203720
if (!zend_traits_method_compatibility_check(fn, existing_fn TSRMLS_CC)) {
37213721
zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s",
37223722
zend_get_function_declaration(fn TSRMLS_CC),
@@ -3731,7 +3731,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
37313731
}
37323732
return;
37333733
} else if ((existing_fn->common.scope->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) {
3734-
/* two trais can't define the same non-abstarct method */
3734+
/* two trais can't define the same non-abstract method */
37353735
#if 1
37363736
zend_error(E_COMPILE_ERROR, "Trait method %s has not been applied, because there are collisions with other trait methods on %s",
37373737
name, ce->name);
@@ -4296,7 +4296,7 @@ void zend_add_trait_alias(znode *method_reference, znode *modifiers, znode *alia
42964296
zend_error(E_COMPILE_ERROR, "Cannot use 'static' as method modifier");
42974297
return;
42984298
} else if (Z_LVAL(modifiers->u.constant) == ZEND_ACC_ABSTRACT) {
4299-
zend_error(E_COMPILE_ERROR, "Cannot use 'abstarct' as method modifier");
4299+
zend_error(E_COMPILE_ERROR, "Cannot use 'abstract' as method modifier");
43004300
return;
43014301
} else if (Z_LVAL(modifiers->u.constant) == ZEND_ACC_FINAL) {
43024302
zend_error(E_COMPILE_ERROR, "Cannot use 'final' as method modifier");

0 commit comments

Comments
 (0)