@@ -39,35 +39,35 @@ public function __construct($name, $reason = null)
3939 *
4040 * @param string $name The name of the check that produced this result.
4141 * @param string|null $reason The reason (if any) of the failure.
42- * @return static The result.
42+ * @return self The result.
4343 */
4444 public static function fromNameAndReason ($ name , $ reason )
4545 {
46- return new static ($ name , $ reason );
46+ return new self ($ name , $ reason );
4747 }
4848
4949 /**
5050 * Static constructor to create from an instance of `PhpSchool\PhpWorkshop\Check\CheckInterface`.
5151 *
5252 * @param CheckInterface $check The check instance.
5353 * @param string $reason The reason (if any) of the failure.
54- * @return static The result.
54+ * @return self The result.
5555 */
5656 public static function fromCheckAndReason (CheckInterface $ check , $ reason )
5757 {
58- return new static ($ check ->getName (), $ reason );
58+ return new self ($ check ->getName (), $ reason );
5959 }
6060
6161 /**
6262 * Static constructor to create from a `PhpSchool\PhpWorkshop\Exception\CodeExecutionException` exception.
6363 *
6464 * @param string $name The name of the check that produced this result.
6565 * @param CodeExecutionException $e The exception.
66- * @return static The result.
66+ * @return self The result.
6767 */
6868 public static function fromNameAndCodeExecutionFailure ($ name , CodeExecutionException $ e )
6969 {
70- return new static ($ name , $ e ->getMessage ());
70+ return new self ($ name , $ e ->getMessage ());
7171 }
7272
7373 /**
@@ -77,11 +77,11 @@ public static function fromNameAndCodeExecutionFailure($name, CodeExecutionExcep
7777 * @param CheckInterface $check The check that attempted to parse the solution.
7878 * @param ParseErrorException $e The parse exception.
7979 * @param string $file The absolute path to the solution.
80- * @return static The result.
80+ * @return self The result.
8181 */
8282 public static function fromCheckAndCodeParseFailure (CheckInterface $ check , ParseErrorException $ e , $ file )
8383 {
84- return new static (
84+ return new self (
8585 $ check ->getName (),
8686 sprintf ('File: "%s" could not be parsed. Error: "%s" ' , $ file , $ e ->getMessage ())
8787 );
0 commit comments