diff --git a/classes/core/PKPApplication.php b/classes/core/PKPApplication.php index 17c158d8325..59fd2854426 100644 --- a/classes/core/PKPApplication.php +++ b/classes/core/PKPApplication.php @@ -30,6 +30,7 @@ use Illuminate\Support\Facades\DB; use PKP\config\Config; use PKP\context\Context; +use PKP\db\DAO; use PKP\db\DAORegistry; use PKP\facades\Locale; use PKP\plugins\Hook; @@ -52,7 +53,7 @@ public static function getContextDAO(): \PKP\context\ContextDAO; * * @hook PKPApplication::execute::catch ['throwable' => $t] */ - public static function getRepresentationDAO(): RepresentationDAOInterface; + public static function getRepresentationDAO(): DAO|RepresentationDAOInterface; /** * Get a SubmissionSearchIndex instance. @@ -92,6 +93,8 @@ public static function getContextAssocType(): int; /** * Get the review workflow stages used by this application. + * + * @hook PKPApplication::execute::catch ['throwable' => $t] */ public function getReviewStages(): array; } diff --git a/classes/submission/Representation.php b/classes/submission/Representation.php index 9773c01d701..2e7180bdff2 100644 --- a/classes/submission/Representation.php +++ b/classes/submission/Representation.php @@ -20,7 +20,7 @@ use APP\facades\Repo; /** - * @extends \PKP\core\DataObject + * @extends \PKP\core\DataObject */ class Representation extends \PKP\core\DataObject { @@ -172,7 +172,7 @@ public function getContextId() /** * @copydoc \PKP\core\DataObject::getDAO() */ - public function getDAO(): \PKP\galley\DAO + public function getDAO(): \PKP\db\DAO|\PKP\core\EntityDAO { return Application::getRepresentationDAO(); } diff --git a/classes/submission/RepresentationDAOInterface.php b/classes/submission/RepresentationDAOInterface.php index 2219f27e136..1f1f8ba9f6a 100644 --- a/classes/submission/RepresentationDAOInterface.php +++ b/classes/submission/RepresentationDAOInterface.php @@ -1,6 +1,7 @@