Skip to content

Commit

Permalink
Fix a typo (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Dec 23, 2024
1 parent c9602b5 commit 332b47c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/Rule/data/methods/traits-17.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
namespace DeadTrait17;

trait A {
public function collission1() {} // error: Unused DeadTrait17\A::collission1
public function collission2() {}
public function collision1() {} // error: Unused DeadTrait17\A::collision1
public function collision2() {}
}

trait B {
public function collission1() {}
public function collission2() {} // error: Unused DeadTrait17\B::collission2
public function collision1() {}
public function collision2() {} // error: Unused DeadTrait17\B::collision2
}

class AliasedTalker {
use A, B {
B::collission1 insteadof A;
A::collission2 insteadof B;
B::collision1 insteadof A;
A::collision2 insteadof B;
}
}

$o = new AliasedTalker();
$o->collission1();
$o->collission2();
$o->collision1();
$o->collision2();

0 comments on commit 332b47c

Please sign in to comment.