PHPStan 2.0
And update to PHP 8.1+
This commit is contained in:
parent
d6697d49c5
commit
6aa8814326
13 changed files with 297 additions and 284 deletions
|
|
@ -5,7 +5,10 @@ declare(strict_types=1);
|
|||
final class FreshExtension_shareByEmail_Controller extends Minz_ActionController {
|
||||
public ?Minz_Extension $extension;
|
||||
|
||||
/** @var ShareByEmail\mailers\View */
|
||||
/**
|
||||
* @var ShareByEmail\mailers\View
|
||||
* @phpstan-ignore property.phpDocType
|
||||
*/
|
||||
protected $view;
|
||||
|
||||
public function __construct() {
|
||||
|
|
@ -17,6 +20,12 @@ final class FreshExtension_shareByEmail_Controller extends Minz_ActionController
|
|||
$this->extension = Minz_ExtensionManager::findExtension('Share By Email');
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws FreshRSS_Context_Exception
|
||||
* @throws Minz_ConfigurationException
|
||||
* @throws Minz_ConfigurationNamespaceException
|
||||
* @throws Minz_PDOConnectionException
|
||||
*/
|
||||
public function shareAction(): void {
|
||||
if (!FreshRSS_Auth::hasAccess()) {
|
||||
Minz_Error::error(403);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue