diff options
author | Guilherme Blanco <guilhermeblanco@hotmail.com> | 2014-12-05 17:09:49 +0000 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2015-01-09 15:45:02 +0100 |
commit | d51fb69c0125a144cacb8c59df89fea3f8ae7f4b (patch) | |
tree | fa054d097845ba51af8e4c361461beac686f4b21 /Zend/tests/traits | |
parent | f48c2327403ce76a870e74f31a069a64dfb711a2 (diff) | |
download | php-git-d51fb69c0125a144cacb8c59df89fea3f8ae7f4b.tar.gz |
Removed parsing support traits to have extends and implements.
Diffstat (limited to 'Zend/tests/traits')
-rw-r--r-- | Zend/tests/traits/bug55524.phpt | 2 | ||||
-rw-r--r-- | Zend/tests/traits/bugs/interfaces.phpt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/tests/traits/bug55524.phpt b/Zend/tests/traits/bug55524.phpt index 137975980d..9fe36d7a80 100644 --- a/Zend/tests/traits/bug55524.phpt +++ b/Zend/tests/traits/bug55524.phpt @@ -12,4 +12,4 @@ trait Foo extends Base { echo 'DONE'; ?> --EXPECTF-- -Fatal error: A trait (Foo) cannot extend a class. Traits can only be composed from other traits with the 'use' keyword. Error in %s on line %d +Parse error: syntax error, unexpected 'extends' (T_EXTENDS), expecting '{' in %s on line %d diff --git a/Zend/tests/traits/bugs/interfaces.phpt b/Zend/tests/traits/bugs/interfaces.phpt index 486bda7efb..b632b73be2 100644 --- a/Zend/tests/traits/bugs/interfaces.phpt +++ b/Zend/tests/traits/bugs/interfaces.phpt @@ -16,4 +16,4 @@ trait THello implements MyInterface { ?> --EXPECTF-- -Fatal error: Cannot use 'MyInterface' as interface on 'THello' since it is a Trait in %s on line %d
\ No newline at end of file +Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in %s on line %d |