Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DataProviderHelper.php

function DataProviderHelper::getDataProviderAnnotationValue

1 call to DataProviderHelper::getDataProviderAnnotationValue()
DataProviderHelper::getDataProviderMethods in vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/DataProviderHelper.php
*

File

vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/DataProviderHelper.php, line 206

Class

DataProviderHelper

Namespace

PHPStan\Rules\PHPUnit

Code

private function getDataProviderAnnotationValue(PhpDocTagNode $phpDocTag) : ?string {
    if (preg_match('/^[^ \\t]+/', (string) $phpDocTag->value, $matches) !== 1) {
        return null;
    }
    return $matches[0];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal