mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-11 17:51:02 +00:00
Modernize to PHP 8.1
This commit is contained in:
parent
ca018c77e3
commit
9e2720cddc
26 changed files with 48 additions and 52 deletions
|
@ -67,7 +67,7 @@ class EntryController extends AbstractController
|
|||
$action = 'tag';
|
||||
|
||||
if (isset($values['tags'])) {
|
||||
$labels = array_filter(explode(',', $values['tags']),
|
||||
$labels = array_filter(explode(',', (string) $values['tags']),
|
||||
function ($v) {
|
||||
$v = trim($v);
|
||||
|
||||
|
@ -616,7 +616,7 @@ class EntryController extends AbstractController
|
|||
*/
|
||||
private function showEntries($type, Request $request, $page)
|
||||
{
|
||||
$searchTerm = (isset($request->query->all('search_entry')['term']) ? trim($request->query->all('search_entry')['term']) : '');
|
||||
$searchTerm = (isset($request->query->all('search_entry')['term']) ? trim((string) $request->query->all('search_entry')['term']) : '');
|
||||
$currentRoute = $request->query->get('currentRoute') ?? '';
|
||||
$currentEntryId = $request->attributes->getInt('id');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue