Browse Source

Changed the exclusion keyword from 'instead' to 'insteadof'. [TRAITS]

#That was suggested several times already, but am still not sure whether that really reads better.
#Especially since only the trait is mentioned, since the method name would be duplicated anyway.
experimental/lemon
Stefan Marr 17 years ago
parent
commit
05a9649043
  1. 2
      Zend/tests/traits/language003.phpt
  2. 2
      Zend/tests/traits/language004.phpt
  3. 4
      Zend/tests/traits/language005.phpt
  4. 2
      Zend/tests/traits/language009.phpt

2
Zend/tests/traits/language003.phpt

@ -18,7 +18,7 @@ trait World {
class MyHelloWorld {
use Hello, World {
Hello::saySomething instead World;
Hello::saySomething insteadof World;
}
}

2
Zend/tests/traits/language004.phpt

@ -18,7 +18,7 @@ trait World {
class MyHelloWorld {
use Hello, World {
Hello::saySomething instead World;
Hello::saySomething insteadof World;
World::saySomething as sayWorld;
}
}

4
Zend/tests/traits/language005.phpt

@ -24,8 +24,8 @@ trait B {
class Talker {
use A, B {
B::smallTalk instead A;
A::bigTalk instead B;
B::smallTalk insteadof A;
A::bigTalk insteadof B;
B::bigTalk as talk;
}
}

2
Zend/tests/traits/language009.phpt

@ -24,7 +24,7 @@ trait C {
class Foo {
use C, A, B {
B::foo instead A, C;
B::foo insteadof A, C;
}
}

Loading…
Cancel
Save