Skip to content

Commit 440aa39

Browse files
committed
Deprecate misspelled URI validation error alias
Register the legacy InvalidReverseSoldius spelling as a deprecated class constant alias for InvalidReverseSolidus in both the stub and generated URI arginfo.
1 parent d4e1557 commit 440aa39

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

ext/uri/php_uri.stub.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ enum UrlValidationErrorType
160160
case PortInvalid;
161161
case FileInvalidWindowsDriveLetter;
162162
case FileInvalidWindowsDriveLetterHost;
163+
164+
#[\Deprecated(since: '8.6', message: 'use Uri\WhatWg\UrlValidationErrorType::InvalidReverseSolidus instead')]
165+
public const UrlValidationErrorType InvalidReverseSoldius = self::InvalidReverseSolidus;
163166
}
164167

165168
/** @strict-properties */

ext/uri/php_uri_arginfo.h

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)