@@ -3693,7 +3693,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
3693
3693
if (* overriden ) {
3694
3694
if (zend_hash_quick_find (* overriden , arKey , nKeyLength , h , (void * * ) & existing_fn ) == SUCCESS ) {
3695
3695
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 */
3697
3697
if (!zend_traits_method_compatibility_check (fn , existing_fn TSRMLS_CC )) {
3698
3698
zend_error (E_COMPILE_ERROR , "Declaration of %s must be compatible with %s" ,
3699
3699
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
3716
3716
zend_hash_quick_update (* overriden , arKey , nKeyLength , h , fn , sizeof (zend_function ), (void * * )& fn );
3717
3717
return ;
3718
3718
} 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 */
3720
3720
if (!zend_traits_method_compatibility_check (fn , existing_fn TSRMLS_CC )) {
3721
3721
zend_error (E_COMPILE_ERROR , "Declaration of %s must be compatible with %s" ,
3722
3722
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
3731
3731
}
3732
3732
return ;
3733
3733
} 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 */
3735
3735
#if 1
3736
3736
zend_error (E_COMPILE_ERROR , "Trait method %s has not been applied, because there are collisions with other trait methods on %s" ,
3737
3737
name , ce -> name );
@@ -4296,7 +4296,7 @@ void zend_add_trait_alias(znode *method_reference, znode *modifiers, znode *alia
4296
4296
zend_error (E_COMPILE_ERROR , "Cannot use 'static' as method modifier" );
4297
4297
return ;
4298
4298
} 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" );
4300
4300
return ;
4301
4301
} else if (Z_LVAL (modifiers -> u .constant ) == ZEND_ACC_FINAL ) {
4302
4302
zend_error (E_COMPILE_ERROR , "Cannot use 'final' as method modifier" );
0 commit comments