Skip to content

Commit

Permalink
Make CanonicalTrait::getNextChar() an abstract method instead a `@m…
Browse files Browse the repository at this point in the history
…ethod` comment

This will ensure the method actually exists on a language level.
  • Loading branch information
TimWolla committed Sep 5, 2023
1 parent 198317f commit a4b640b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/CanonicalTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

use ParagonIE\ConstantTime\Binary;

/**
* @method getNextChar(string $c): string
*/
trait CanonicalTrait
{
public function canonicalDataProvider(): array
Expand All @@ -21,6 +18,8 @@ public function canonicalDataProvider(): array
];
}

abstract private function getNextChar(string $c): string;

protected function increment(string $str): string
{
$i = Binary::safeStrlen($str) - 1;
Expand Down

0 comments on commit a4b640b

Please sign in to comment.