summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Pauli <jpauli@php.net>2014-10-29 14:39:48 +0100
committerJulien Pauli <jpauli@php.net>2014-11-21 15:37:33 +0100
commitcd3b46f28af49e5eaaa687d5d186e641ce147853 (patch)
tree4932335184bddd1fc39480327311f9f3b617139b
parent59a9e7af215fb2411035f8d75386acbb38cd8e83 (diff)
downloadphp-git-cd3b46f28af49e5eaaa687d5d186e641ce147853.tar.gz
Fix #68185 - Inconsistent insteadof definition
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index bd3e1dd813..6e1912803e 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -4116,7 +4116,7 @@ static void zend_traits_init_trait_structures(zend_class_entry *ce TSRMLS_DC) /*
/* make sure that the trait method is not from a class mentioned in
exclude_from_classes, for consistency */
- if (cur_precedence->trait_method->ce == cur_precedence->exclude_from_classes[i]) {
+ if (cur_precedence->trait_method->ce == cur_precedence->exclude_from_classes[j]) {
zend_error(E_COMPILE_ERROR,
"Inconsistent insteadof definition. "
"The method %s is to be used from %s, but %s is also on the exclude list",