Home
last modified time | relevance | path

Searched refs:traits (Results 1 – 25 of 65) sorted by relevance

123

/php-src/ext/standard/tests/class_object/
H A Dget_declared_traits_variation1.phpt2 Test get_declared_traits() function : testing autoloaded traits
5 echo "*** Testing get_declared_traits() : testing autoloaded traits ***\n";
26 *** Testing get_declared_traits() : testing autoloaded traits ***
/php-src/Zend/tests/traits/
H A Dproperty009.phpt2traits needs to have same semantics as with normal inheritance, however, we do add strict warnings…
15 // And here, we need to make sure, that the traits behave the same
H A Dproperty008.phpt2 Handling of private fields with traits needs to have same semantics as with normal inheritance.
15 // And here, we need to make sure, that the traits behave the same
H A Dinterface_001.phpt2 Using traits to implement interface
H A Dconstant_003.phpt2 Non-final Constants in traits can be overridden in derived classes
H A Dlanguage012.phpt2 Statics should work in traits, too.
H A Dtrait_constant_002.phpt2 __TRAIT__: Use outside of traits.
H A Dbug63911.phpt2 Bug #63911 (Ignore conflicting trait methods originationg from identical sub traits)
H A Dabstract_method_2.phpt2 Mutually incompatible methods from traits are fine as long as the final method is compatible
H A Dbug60145.phpt18 Fatal error: Cannot use traits inside of interfaces. foo is used in MyInterface in %s on line %d
H A Dlanguage002.phpt2 Use multiple traits.
/php-src/Zend/tests/
H A Dstringable_trait.phpt25 // The traits themselves should not implement Stringable -- traits cannot implement interfaces.
H A Dbug69174.phpt2 Bug #69174 (leaks when unused inner class use traits precedence)
H A Dbug80055.phpt2 Bug #80055: Abstract trait methods returning "self" cannot be fulfilled by traits
H A Dbug65579.phpt2 Bug #65579 (Using traits with get_class_methods causes segfault)
/php-src/ext/spl/tests/
H A Dclass_uses_variation.phpt7 echo "--- testing no traits ---\n";
23 --- testing no traits ---
/php-src/Zend/tests/anon/
H A D009.phpt2 testing traits in anon classes
/php-src/Zend/tests/traits/bugs/
H A Dmissing-trait.phpt2 Check error message for missing traits
/php-src/ext/reflection/tests/
H A Dbug78697.phpt2 Bug #78697: ReflectionClass::implementsInterface - inaccurate error message with traits
H A Dreflectionclass_for_traits.phpt2 Tests some parts of ReflectionClass behavior for traits
/php-src/Zend/
H A Dzend_inheritance.c2142 if (traits[i] == trait) { in zend_check_trait_usage()
2263 if (traits[j]) { in zend_traits_init_trait_structures()
2266 trait = traits[j]; in zend_traits_init_trait_structures()
2314 if (traits[i]) { in zend_do_traits_method_binding()
2329 if (traits[i]) { in zend_do_traits_method_binding()
2356 if (traits[i] in find_first_constant_definition()
2358 return traits[i]; in find_first_constant_definition()
2428 if (!traits[i]) { in zend_do_traits_constant_binding()
2470 if (traits[i] in find_first_property_definition()
2472 return traits[i]; in find_first_property_definition()
[all …]
/php-src/Zend/tests/readonly_classes/
H A Dgh9285_success.phpt2 Bug GH-9285: PHP 8.2 readonly classes allow inheriting mutable properties from traits - success
H A Dgh9285_error.phpt2 Bug GH-9285: PHP 8.2 readonly classes allow inheriting mutable properties from traits - error
/php-src/Zend/tests/enum/
H A Dtraits-no-__construct.phpt2 Enum traits no __construct
H A Dtraits-no-forbidden-methods.phpt2 Enum cannot have forbidden methods, even via traits

Completed in 30 milliseconds

123