@@ -3835,7 +3835,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
3835
3835
if (* overriden ) {
3836
3836
if (zend_hash_quick_find (* overriden , arKey , nKeyLength , h , (void * * ) & existing_fn ) == SUCCESS ) {
3837
3837
if (existing_fn -> common .fn_flags & ZEND_ACC_ABSTRACT ) {
3838
- /* Make sure the trait method is compatible with previosly declared abstarct method */
3838
+ /* Make sure the trait method is compatible with previosly declared abstract method */
3839
3839
if (!zend_traits_method_compatibility_check (fn , existing_fn TSRMLS_CC )) {
3840
3840
zend_error (E_COMPILE_ERROR , "Declaration of %s must be compatible with %s" ,
3841
3841
zend_get_function_declaration (fn TSRMLS_CC ),
@@ -3858,7 +3858,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
3858
3858
zend_hash_quick_update (* overriden , arKey , nKeyLength , h , fn , sizeof (zend_function ), (void * * )& fn );
3859
3859
return ;
3860
3860
} else if (existing_fn -> common .fn_flags & ZEND_ACC_ABSTRACT ) {
3861
- /* Make sure the trait method is compatible with previosly declared abstarct method */
3861
+ /* Make sure the trait method is compatible with previosly declared abstract method */
3862
3862
if (!zend_traits_method_compatibility_check (fn , existing_fn TSRMLS_CC )) {
3863
3863
zend_error (E_COMPILE_ERROR , "Declaration of %s must be compatible with %s" ,
3864
3864
zend_get_function_declaration (fn TSRMLS_CC ),
@@ -3873,7 +3873,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
3873
3873
}
3874
3874
return ;
3875
3875
} else if ((existing_fn -> common .scope -> ce_flags & ZEND_ACC_TRAIT ) == ZEND_ACC_TRAIT ) {
3876
- /* two trais can't define the same non-abstarct method */
3876
+ /* two trais can't define the same non-abstract method */
3877
3877
#if 1
3878
3878
zend_error (E_COMPILE_ERROR , "Trait method %s has not been applied, because there are collisions with other trait methods on %s" ,
3879
3879
name , ce -> name );
@@ -4438,7 +4438,7 @@ void zend_add_trait_alias(znode *method_reference, znode *modifiers, znode *alia
4438
4438
zend_error (E_COMPILE_ERROR , "Cannot use 'static' as method modifier" );
4439
4439
return ;
4440
4440
} else if (Z_LVAL (modifiers -> u .constant ) == ZEND_ACC_ABSTRACT ) {
4441
- zend_error (E_COMPILE_ERROR , "Cannot use 'abstarct ' as method modifier" );
4441
+ zend_error (E_COMPILE_ERROR , "Cannot use 'abstract ' as method modifier" );
4442
4442
return ;
4443
4443
} else if (Z_LVAL (modifiers -> u .constant ) == ZEND_ACC_FINAL ) {
4444
4444
zend_error (E_COMPILE_ERROR , "Cannot use 'final' as method modifier" );
0 commit comments