Skip to content

Commit 8a9c726

Browse files
committed
Rename assertion
1 parent b9b01f9 commit 8a9c726

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Assert/Assert.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
/**
1010
* @package simplesamlphp/xml-wss-core
1111
*
12-
* @method static void validWSUDateTime(mixed $value, string $message = '', string $exception = '')
13-
* @method static void allWSUDateTime(mixed $value, string $message = '', string $exception = '')
14-
* @method static void nullOrValueWSUDateTime(mixed $value, string $message = '', string $exception = '')
12+
* @method static void validDateTime(mixed $value, string $message = '', string $exception = '')
13+
* @method static void allDateTime(mixed $value, string $message = '', string $exception = '')
14+
* @method static void nullOrValueDateTime(mixed $value, string $message = '', string $exception = '')
1515
*/
1616
class Assert extends BaseAssert
1717
{

src/Assert/DateTimeTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait DateTimeTrait
1515
* @param string $value
1616
* @param string $message
1717
*/
18-
protected static function validWSUDateTime(string $value, string $message = ''): void
18+
protected static function validDateTime(string $value, string $message = ''): void
1919
{
2020
parent::validDateTime($value);
2121
parent::endsWith(

src/Type/DateTimeValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ class DateTimeValue extends BaseDateTimeValue
2929
protected function validateValue(string $value): void
3030
{
3131
// Note: value must already be sanitized before validating
32-
Assert::validWSUDateTime($this->sanitizeValue($value), ProtocolViolationException::class);
32+
Assert::validDateTime($this->sanitizeValue($value), ProtocolViolationException::class);
3333
}
3434
}

0 commit comments

Comments
 (0)