Searched refs:trait (Results 1 – 25 of 269) sorted by relevance
1234567891011
11 trait MyTrait {}13 echo "Calling trait_exists() on non-existent trait with autoload explicitly enabled:\n";15 echo "\nCalling trait_exists() on existing trait with autoload explicitly enabled:\n";23 echo "\nCalling trait_exists() on non-existent trait with autoload unspecified:\n";25 echo "\nCalling trait_exists() on existing trait with autoload unspecified:\n";32 Calling trait_exists() on non-existent trait with autoload explicitly enabled:36 Calling trait_exists() on existing trait with autoload explicitly enabled:39 Calling trait_exists() on non-existent trait with autoload explicitly enabled:42 Calling trait_exists() on existing trait with autoload explicitly disabled:45 Calling trait_exists() on non-existent trait with autoload unspecified:[all …]
7 trait MyTrait {}13 foreach (get_declared_traits() as $trait) {14 if (!trait_exists($trait)) {15 echo "Error: $trait is not a valid trait.\n";19 echo "\n-- Ensure trait is listed --\n";41 -- Ensure trait is listed --
2 Object naming collision error: trait/trait6 trait A { }7 trait A { }11 Fatal error: Cannot declare trait A, because the name is already in use in %s on line %d
2 Object naming collision error: interface/trait7 trait A { }11 Fatal error: Cannot declare trait A, because the name is already in use in %s on line %d
2 Object naming collision error: class/trait7 trait A { }11 Fatal error: Cannot declare trait A, because the name is already in use in %s on line %d
2 Bug #80055: Abstract trait methods returning "self" cannot be fulfilled by traits6 trait AbstractTrait {10 trait ConcreteTrait {
2 Cannot use static in trait insteadof list6 trait SomeTrait {18 Fatal error: Cannot use 'static' as trait name, as it is reserved in %s on line %d
2 Cannot use static in trait insteadof method reference6 trait SomeTrait {18 Fatal error: Cannot use 'static' as trait name, as it is reserved in %s on line %d
2 Bug #63219 (Segfault when aliasing trait method when autoloader throws excpetion)5 trait TFoo {18 Fatal error: Could not find trait Typo in %sbug63219.php on line %d
2 Bug #63911 (Ignore conflicting trait methods originationg from identical sub traits)5 trait A11 trait B15 trait C
2 Trying to exclude trait method multiple times6 trait foo {9 trait c {23 Fatal error: Failed to evaluate a trait precedence (test). Method of trait foo was defined to be ex…
2 In instead definitions all trait whose methods are meant to be hidden can be listed.7 trait A {13 trait B {19 trait C {
2 Testing trait collisions6 trait foo {9 trait c {13 trait b {
2 Trying to extend a trait6 trait abc { }12 Fatal error: Class foo cannot extend from trait abc in %s on line %d
2 Trying to instantiate a trait6 trait abc {13 Fatal error: Uncaught Error: Cannot instantiate trait abc in %s:%d
7 trait Hello {13 trait World {19 trait HelloWorld {
2 Bug #60173 (Wrong error message on reflective trait instantiation)6 trait foo { }12 Fatal error: Uncaught Error: Cannot instantiate trait foo in %s:%d
2 Bug #76700 (false-positive "Error: Call to protected method" when using trait aliases)5 trait T110 trait T2
2 Bug #54441 (Changing trait static method visibility)6 trait Foo {19 Fatal error: The modifiers of the trait method dontKnow() are changed, but this method does not exi…
2 Invalid conflict resolution (unused trait as lhs of "insteadof")5 trait T1 {8 trait T2 {
2 Invalid conflict resolution (unused trait as rhs of "insteadof")5 trait T1 {8 trait T2 {
2 Invalid conflict resolution (unused trait as lhs of "as")5 trait T1 {8 trait T2 {
2 __TRAIT__: Basics, a constant denoiting the trait of definition.6 trait TestTrait {20 trait TestTraitIndirect {
6 trait foo {12 trait foo2 {28 Fatal error: Class A cannot extend from trait foo in %s on line %d
2 Bug #69180: Reflection does not honor trait conflict resolution / method aliasing6 trait T113 trait T2
Completed in 19 milliseconds