Home
last modified time | relevance | path

Searched refs:trait (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/PHP-8.1/Zend/tests/traits/
H A Ddirect_static_member_access.phpt2 Direct access to static trait members is deprecated
6 trait T {
39 Deprecated: Accessing static trait property T::$foo is deprecated, it should only be accessed on a …
41 Deprecated: Accessing static trait property T::$foo is deprecated, it should only be accessed on a …
44 Deprecated: Calling static trait method T::foo is deprecated, it should only be called on a class u…
47 Deprecated: Calling static trait method T::bar is deprecated, it should only be called on a class u…
51 Deprecated: Accessing static trait property T::$foo is deprecated, it should only be accessed on a …
53 Deprecated: Accessing static trait property T::$foo is deprecated, it should only be accessed on a …
56 Deprecated: Calling static trait method T::foo is deprecated, it should only be called on a class u…
59 Deprecated: Calling static trait method T::bar is deprecated, it should only be called on a class u…
H A Derror_010.phpt2 Trying to exclude trait method multiple times
6 trait foo {
9 trait c {
23 Fatal error: Failed to evaluate a trait precedence (test). Method of trait foo was defined to be ex…
H A Dbug63911.phpt2 Bug #63911 (Ignore conflicting trait methods originationg from identical sub traits)
5 trait A
11 trait B
15 trait C
H A Dlanguage009.phpt2 In instead definitions all trait whose methods are meant to be hidden can be listed.
7 trait A {
13 trait B {
19 trait C {
H A Derror_011.phpt2 Testing trait collisions
6 trait foo {
9 trait c {
13 trait b {
H A Derror_009.phpt2 Trying to extend a trait
6 trait abc { }
12 Fatal error: Class foo cannot extend trait abc in %s on line %d
H A Derror_007.phpt2 Trying to instantiate a trait
6 trait abc {
13 Fatal error: Uncaught Error: Cannot instantiate trait abc in %s:%d
H A Dprecedence_unknown_class.phpt2 Unknown class in absolute trait precedence reference
6 trait T {}
15 Fatal error: Could not find trait WrongClass in %s on line %d
H A Dflattening003.phpt7 trait Hello {
13 trait World {
19 trait HelloWorld {
H A Dbug60173.phpt2 Bug #60173 (Wrong error message on reflective trait instantiation)
6 trait foo { }
12 Fatal error: Uncaught Error: Cannot instantiate trait foo in %s:%d
H A Dbug76700.phpt2 Bug #76700 (false-positive "Error: Call to protected method" when using trait aliases)
5 trait T1
10 trait T2
H A Dbug54441.phpt2 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…
H A Dlanguage017.phpt2 Invalid conflict resolution (unused trait as lhs of "as")
5 trait T1 {
8 trait T2 {
/PHP-8.1/ext/standard/tests/class_object/
H A Dtrait_exists_basic_001.phpt11 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 …]
H A Dget_declared_traits_basic_001.phpt7 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 --
/PHP-8.1/Zend/tests/
H A Dname_collision_06.phpt2 Object naming collision error: trait/trait
6 trait A { }
7 trait A { }
11 Fatal error: Cannot declare trait A, because the name is already in use in %s on line %d
H A Dname_collision_03.phpt2 Object naming collision error: class/trait
7 trait A { }
11 Fatal error: Cannot declare trait A, because the name is already in use in %s on line %d
H A Dname_collision_05.phpt2 Object naming collision error: interface/trait
7 trait A { }
11 Fatal error: Cannot declare trait A, because the name is already in use in %s on line %d
H A Dbug80055.phpt2 Bug #80055: Abstract trait methods returning "self" cannot be fulfilled by traits
6 trait AbstractTrait {
10 trait ConcreteTrait {
H A Dstatic_in_trait_insteadof_list.phpt2 Cannot use static in trait insteadof list
6 trait SomeTrait {
18 Fatal error: Cannot use 'static' as trait name, as it is reserved in %s on line %d
H A Dbug63219.phpt2 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
H A Dstatic_in_trait_insteadof_reference.phpt2 Cannot use static in trait insteadof method reference
6 trait SomeTrait {
18 Fatal error: Cannot use 'static' as trait name, as it is reserved in %s on line %d
/PHP-8.1/Zend/tests/type_declarations/
H A Dtyped_properties_043.phpt2 Trying to assign to a static 'self' typed property on a trait must not fixate the type to the trait
6 trait Test {
44 …precated: Accessing static trait property Test::$selfProp is deprecated, it should only be accesse…
47 …ecated: Accessing static trait property Test::$selfNullProp is deprecated, it should only be acces…
50 …recated: Accessing static trait property Test::$parentProp is deprecated, it should only be access…
53 …ecated: Accessing static trait property Test::$selfNullProp is deprecated, it should only be acces…
55 …ecated: Accessing static trait property Test::$selfNullProp is deprecated, it should only be acces…
/PHP-8.1/Zend/tests/readonly_props/
H A Dreadonly_trait_match.phpt2 Readonly match of imported trait properties (valid)
6 trait T1 {
9 trait T2 {
/PHP-8.1/ext/reflection/tests/
H A Dbug69180.phpt2 Bug #69180: Reflection does not honor trait conflict resolution / method aliasing
6 trait T1
13 trait T2

Completed in 58 milliseconds

12345678910>>...12