Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / CodeCleaner / NoReturnValue.php
1 <?php
2
3 /*
4  * This file is part of Psy Shell.
5  *
6  * (c) 2012-2018 Justin Hileman
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Psy\CodeCleaner;
13
14 use PhpParser\Node\Expr\New_;
15 use PhpParser\Node\Name\FullyQualified as FullyQualifiedName;
16
17 /**
18  * A class used internally by CodeCleaner to represent input, such as
19  * non-expression statements, with no return value.
20  *
21  * Note that user code returning an instance of this class will act like it
22  * has no return value, so you prolly shouldn't do that.
23  */
24 class NoReturnValue
25 {
26     /**
27      * Get PhpParser AST expression for creating a new NoReturnValue.
28      *
29      * @return PhpParser\Node\Expr\New_
30      */
31     public static function create()
32     {
33         return new New_(new FullyQualifiedName('Psy\CodeCleaner\NoReturnValue'));
34     }
35 }