Skip to content

Commit

Permalink
pkp/pkp-lib#10027 Make typehints consistent in auth policies
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jan 7, 2025
1 parent 5983ef9 commit 5677f32
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @file classes/security/authorization/OjsJournalMustPublishPolicy.php
*
Expand Down Expand Up @@ -38,7 +39,7 @@ public function __construct($request)
//
// Implement template methods from AuthorizationPolicy
//
public function effect()
public function effect(): int
{
if (!$this->_context) {
return AuthorizationPolicy::AUTHORIZATION_DENY;
Expand Down

0 comments on commit 5677f32

Please sign in to comment.