Searched refs:trait (Results 1 – 25 of 360) sorted by relevance
12345678910>>...15
/php-src/Zend/tests/traits/ |
H A D | direct_static_member_access.phpt | 2 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 D | trait_underscore_as_name.phpt | 2 Using "_" as a trait name is deprecated 7 trait _ {} 11 trait _ {} 16 Deprecated: Using "_" as a trait name is deprecated since 8.4 in %s on line %d 18 Deprecated: Using "_" as a trait name is deprecated since 8.4 in %s on line %d
|
H A D | error_010.phpt | 2 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 D | bug63911.phpt | 2 Bug #63911 (Ignore conflicting trait methods originating from identical sub traits) 5 trait A 11 trait B 15 trait C
|
H A D | constant_004.phpt | 2 Trying to access a constant on trait via the name of trait causes a Fatal error 5 trait Foo { 16 Fatal error: Uncaught Error: Cannot access trait constant Foo::A directly in %s:%d
|
H A D | language009.phpt | 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 {
|
H A D | error_011.phpt | 2 Testing trait collisions 6 trait foo { 9 trait c { 13 trait b {
|
H A D | error_009.phpt | 2 Trying to extend a trait 6 trait abc { } 12 Fatal error: Class foo cannot extend trait abc in %s on line %d
|
H A D | constant_002.phpt | 2 Defining a constant in both trait and its composing class with the same name, visibility, finality … 6 trait TestTrait1 { 10 trait TestTrait2 { 14 trait TestTrait3 {
|
H A D | constant_011.phpt | 2 Conflicting constants in a trait and another trait using it with different visibility modifiers sho… 6 trait Trait1 { 10 trait Trait2 {
|
H A D | constant_012.phpt | 2 Conflicting constants in a trait and another trait using it with different values should result in … 6 trait Trait1 { 10 trait Trait2 {
|
H A D | constant_013.phpt | 2 Conflicting constants in a trait and another trait using it with different finality should result i… 6 trait Trait1 { 10 trait Trait2 {
|
H A D | error_007.phpt | 2 Trying to instantiate a trait 6 trait abc { 13 Fatal error: Uncaught Error: Cannot instantiate trait abc in %s:%d
|
H A D | precedence_unknown_class.phpt | 2 Unknown class in absolute trait precedence reference 6 trait T {} 15 Fatal error: Could not find trait WrongClass in %s on line %d
|
/php-src/ext/standard/tests/class_object/ |
H A D | trait_exists_basic_001.phpt | 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 …]
|
H A D | get_declared_traits_basic_001.phpt | 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 --
|
/php-src/Zend/tests/ |
H A D | name_collision_06.phpt | 2 Object naming collision error: trait/trait 6 trait A { } 7 trait A { } 11 Fatal error: Cannot redeclare trait A (previously declared in %s:%d) in %s on line %d
|
H A D | allow_dynamic_properties_on_trait.phpt | 2 #[AllowDynamicProperties] cannot be applied to trait 7 trait Test {} 11 Fatal error: Cannot apply #[AllowDynamicProperties] to trait Test in %s on line %d
|
H A D | special_name_error3.phpt | 2 Cannot use special class name as trait name 6 trait self {} 10 Fatal error: Cannot use "self" as a trait name as it is reserved in %s on line %d
|
H A D | bug80055.phpt | 2 Bug #80055: Abstract trait methods returning "self" cannot be fulfilled by traits 6 trait AbstractTrait { 10 trait ConcreteTrait {
|
H A D | static_in_trait_insteadof_list.phpt | 2 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
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_043.phpt | 2 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-src/Zend/tests/gh15976/ |
H A D | trait-names.phpt | 2 GH-15976: Bad trait names 6 trait _ {} 7 trait bool {} 11 Deprecated: Using "_" as a trait name is deprecated since 8.4 in %strait-names.php on line 3 13 Fatal error: Cannot use "bool" as a trait name as it is reserved in %strait-names.php on line 4
|
/php-src/Zend/tests/readonly_props/ |
H A D | readonly_trait_match.phpt | 2 Readonly match of imported trait properties (valid) 6 trait T1 { 9 trait T2 {
|
/php-src/Zend/tests/attributes/override/ |
H A D | gh12189_6.phpt | 2 #[Override]: Inheritance check of inherited trait method against interface 6 trait T1 { 10 trait T2 {
|
Completed in 37 milliseconds
12345678910>>...15