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 namespace Drupal\Core\Validation\Plugin\Validation\Constraint; use Drupal\Core\Str..

Decoded Output download

<?php

namespace Drupal\Core\Validation\Plugin\Validation\Constraint;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraints\IsNull;

/**
 * Null constraint.
 *
 * Overrides the symfony constraint to handle empty Typed Data structures.
 */
#[Constraint(
  id: 'Null',
  label: new TranslatableMarkup('Null', [], ['context' => 'Validation']),
  type: FALSE
)]
class IsNullConstraint extends IsNull {}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Drupal\Core\Validation\Plugin\Validation\Constraint;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraints\IsNull;

/**
 * Null constraint.
 *
 * Overrides the symfony constraint to handle empty Typed Data structures.
 */
#[Constraint(
  id: 'Null',
  label: new TranslatableMarkup('Null', [], ['context' => 'Validation']),
  type: FALSE
)]
class IsNullConstraint extends IsNull {}

Function Calls

None

Variables

None

Stats

MD5 bf3d3a373ca52a6559c2d3dc3ada7929
Eval Count 0
Decode Time 88 ms