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

Breadcrumb

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

function DoctrineConstExprStringNode::unescape

File

vendor/phpstan/phpdoc-parser/src/Ast/ConstExpr/DoctrineConstExprStringNode.php, line 30

Class

DoctrineConstExprStringNode

Namespace

PHPStan\PhpDocParser\Ast\ConstExpr

Code

public static function unescape(string $value) : string {
    // from https://github.com/doctrine/annotations/blob/a9ec7af212302a75d1f92fa65d3abfbd16245a2a/lib/Doctrine/Common/Annotations/DocLexer.php#L103-L107
    return str_replace('""', '"', substr($value, 1, strlen($value) - 2));
}

API Navigation

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