Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Uri\WhatWg\UrlValidationErrorUri\WhatWg\UrlValidationErrorType>
^Uri\WhatWg\UrlValidationErrorLast updated: Mon, 26 Oct 2026

Uri\WhatWg\UrlValidationError::__construct

(PHP 8 >= 8.5.0)

Uri\WhatWg\UrlValidationError::__construct — Construct a UrlValidationError object

Description

public function Uri\WhatWg\UrlValidationError::__construct(string $context, Uri\WhatWg\UrlValidationErrorType $type, bool $failure)

Constructs a Uri\WhatWg\UrlValidationError object.

Parameters

context

The input URL at the point where the error was detected.

type

The type of error.

failure

If true the error caused the URL to be rejected as invalid. If false the error is a soft error that was automatically corrected during parsing.


<Uri\WhatWg\UrlValidationErrorUri\WhatWg\UrlValidationErrorType>
^Uri\WhatWg\UrlValidationErrorLast updated: Mon, 26 Oct 2026