AnnotationEnumInvalid.php

Same filename in other branches
  1. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumInvalid.php
  2. 8.9.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumInvalid.php
  3. 11.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumInvalid.php

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumInvalid.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures;


/**
 * @Annotation
 * @Target("ALL")
 */
final class AnnotationEnumInvalid {
    
    /**
     * @var mixed
     *
     * @Enum({1, 2, "foo", "bar", {"foo":"bar"}})
     */
    public $value;

}

Classes

Title Deprecated Summary
AnnotationEnumInvalid Plugin annotation @Target("ALL");

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.