← All changes
|
back/Libraries/Symfony/CssSelector/Node/AbstractNode.php
+9
-2
10.1.4
→
11.1.0
View file →
| @@ -8,9 +8,9 @@ | ||
| 8 | 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -namespace Symfony\Component\CssSelector\Node; | |
| 12 | +namespace AcyMailing\Libraries\Symfony\CssSelector\Node; | |
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Abstract base node class. |
| 16 | 16 | * |
| @@ -22,11 +22,18 @@ | ||
| 22 | 22 | * @internal |
| 23 | 23 | */ |
| 24 | 24 | abstract class AbstractNode implements NodeInterface |
| 25 | 25 | { |
| 26 | + /** | |
| 27 | + * @var string | |
| 28 | + */ | |
| 26 | 29 | private $nodeName; |
| 27 | 30 | |
| 28 | 31 | public function getNodeName(): string |
| 29 | 32 | { |
| 30 | - return $this->nodeName = $this->nodeName ?? preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', static::class); | |
| 33 | + if (null === $this->nodeName) { | |
| 34 | + $this->nodeName = preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', static::class); | |
| 35 | + } | |
| 36 | + | |
| 37 | + return $this->nodeName; | |
| 31 | 38 | } |
| 32 | 39 | } |