Aggiornato Composer
This commit is contained in:
20
vendor/psy/psysh/src/Context.php
vendored
20
vendor/psy/psysh/src/Context.php
vendored
@@ -3,7 +3,7 @@
|
||||
/*
|
||||
* This file is part of Psy Shell.
|
||||
*
|
||||
* (c) 2012-2022 Justin Hileman
|
||||
* (c) 2012-2023 Justin Hileman
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
@@ -92,8 +92,6 @@ class Context
|
||||
|
||||
/**
|
||||
* Get all defined variables.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAll(): array
|
||||
{
|
||||
@@ -102,8 +100,6 @@ class Context
|
||||
|
||||
/**
|
||||
* Get all defined magic variables: $_, $_e, $__out, $__class, $__file, etc.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getSpecialVariables(): array
|
||||
{
|
||||
@@ -168,21 +164,21 @@ class Context
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the most recent Exception.
|
||||
* Set the most recent Exception or Error.
|
||||
*
|
||||
* @param \Exception $e
|
||||
* @param \Throwable $e
|
||||
*/
|
||||
public function setLastException(\Exception $e)
|
||||
public function setLastException(\Throwable $e)
|
||||
{
|
||||
$this->lastException = $e;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the most recent Exception.
|
||||
* Get the most recent Exception or Error.
|
||||
*
|
||||
* @throws \InvalidArgumentException If no Exception has been caught
|
||||
*
|
||||
* @return \Exception|null
|
||||
* @return \Throwable|null
|
||||
*/
|
||||
public function getLastException()
|
||||
{
|
||||
@@ -285,8 +281,6 @@ class Context
|
||||
|
||||
/**
|
||||
* Get command-scope magic variables: $__class, $__file, etc.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getCommandScopeVariables(): array
|
||||
{
|
||||
@@ -310,8 +304,6 @@ class Context
|
||||
* Check whether a variable name is a magic variable.
|
||||
*
|
||||
* @param string $name
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isSpecialVariableName(string $name): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user