mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 22:15:56 +00:00
deal with phpstan warnings in plugins/note, nsfw, and share
This commit is contained in:
@@ -21,7 +21,7 @@ class Note extends Plugin {
|
||||
style='cursor : pointer' title='".__('Edit article note')."'>note</i>";
|
||||
}
|
||||
|
||||
function edit() {
|
||||
function edit() : void {
|
||||
$id = clean($_REQUEST['id']);
|
||||
|
||||
$sth = $this->pdo->prepare("SELECT note FROM ttrss_user_entries WHERE
|
||||
@@ -49,7 +49,7 @@ class Note extends Plugin {
|
||||
<?php
|
||||
}
|
||||
|
||||
function setNote() {
|
||||
function setNote() : void {
|
||||
$id = (int)clean($_REQUEST["id"]);
|
||||
$note = clean($_REQUEST["note"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user