Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php declare(strict_types=1); namespace Drupal\Core\Validation\Plugin\Validation\Constr..
Decoded Output download
<?php
declare(strict_types=1);
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;
/**
* Checks if a string conforms to the RFC 3986 host component.
*/
#[Constraint(
id: 'UriHost',
label: new TranslatableMarkup('URI host', [], ['context' => 'Validation']),
)]
class UriHostConstraint extends SymfonyConstraint {
/**
* The error message if validation fails.
*
* @var string
*/
public string $message = 'This value should conform to RFC 3986 URI host component.';
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;
/**
* Checks if a string conforms to the RFC 3986 host component.
*/
#[Constraint(
id: 'UriHost',
label: new TranslatableMarkup('URI host', [], ['context' => 'Validation']),
)]
class UriHostConstraint extends SymfonyConstraint {
/**
* The error message if validation fails.
*
* @var string
*/
public string $message = 'This value should conform to RFC 3986 URI host component.';
}
Function Calls
None |
Stats
MD5 | f8096d0bad2c27200b1d2cab2b550c39 |
Eval Count | 0 |
Decode Time | 88 ms |