diff --git a/src/MissingFieldException.php b/src/MissingFieldException.php index 915f1dc..ab87967 100644 --- a/src/MissingFieldException.php +++ b/src/MissingFieldException.php @@ -2,18 +2,19 @@ namespace Swaggest\JsonDiff; +use Swaggest\JsonDiff\JsonPatch\OpPath; use Throwable; class MissingFieldException extends Exception { /** @var string */ private $missingField; - /** @var object */ + /** @var OpPath|object */ private $operation; /** * @param string $missingField - * @param object $operation + * @param OpPath|object $operation * @param int $code * @param Throwable|null $previous */ @@ -38,7 +39,7 @@ public function getMissingField() } /** - * @return object + * @return OpPath|object */ public function getOperation() { diff --git a/src/PatchTestOperationFailedException.php b/src/PatchTestOperationFailedException.php index c2ded02..7204b7c 100644 --- a/src/PatchTestOperationFailedException.php +++ b/src/PatchTestOperationFailedException.php @@ -3,18 +3,19 @@ namespace Swaggest\JsonDiff; +use Swaggest\JsonDiff\JsonPatch\Test; use Throwable; class PatchTestOperationFailedException extends Exception { - /** @var object */ + /** @var Test */ private $operation; - /** @var string */ + /** @var mixed */ private $actualValue; /** - * @param object $operation - * @param string $actualValue + * @param Test $operation + * @param mixed $actualValue * @param int $code * @param Throwable|null $previous */ @@ -32,7 +33,7 @@ public function __construct( } /** - * @return object + * @return Test */ public function getOperation() { @@ -40,7 +41,7 @@ public function getOperation() } /** - * @return string + * @return mixed */ public function getActualValue() { diff --git a/src/PathException.php b/src/PathException.php index c96f83f..6ccbe91 100644 --- a/src/PathException.php +++ b/src/PathException.php @@ -3,11 +3,12 @@ namespace Swaggest\JsonDiff; +use Swaggest\JsonDiff\JsonPatch\OpPath; use Throwable; class PathException extends Exception { - /** @var object */ + /** @var OpPath */ private $operation; /** @var string */ @@ -15,7 +16,7 @@ class PathException extends Exception /** * @param string $message - * @param object $operation + * @param OpPath $operation * @param string $field * @param int $code * @param Throwable|null $previous @@ -34,7 +35,7 @@ public function __construct( } /** - * @return object + * @return OpPath */ public function getOperation() { diff --git a/src/UnknownOperationException.php b/src/UnknownOperationException.php index 0855bb2..8d35abb 100644 --- a/src/UnknownOperationException.php +++ b/src/UnknownOperationException.php @@ -3,15 +3,16 @@ namespace Swaggest\JsonDiff; +use Swaggest\JsonDiff\JsonPatch\OpPath; use Throwable; class UnknownOperationException extends Exception { - /** @var object */ + /** @var OpPath|object */ private $operation; /** - * @param object $operation + * @param OpPath|object $operation * @param int $code * @param Throwable|null $previous */ @@ -27,7 +28,7 @@ public function __construct( } /** - * @return object + * @return OpPath|object */ public function getOperation() {