aboutsummaryrefslogtreecommitdiff
path: root/app/views/javascript
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2023-11-16 22:43:00 +0100
committerGravatar GitHub <noreply@github.com> 2023-11-16 22:43:00 +0100
commit30c7a61a9b410f023c56ef19b9389a61647d8768 (patch)
treebb58408980ce5b86f1d2b4a9be29d55b2d46dbb1 /app/views/javascript
parentee99e7e2cc228500efc1b539954c0ca6cd4c146d (diff)
Use strict_types (#5830)
* Little's optimisations and booleans in conditions * Apply strict type * Apply strict type * Apply strict type * Fix multiple bugs with PHP 8.2 and 8.3 * Many declares missing, more errors fixed * Apply strict type * Another approach * Stronger typing for Minz_Session * Fix case of SQLite --------- Co-authored-by: Luc <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/javascript')
-rw-r--r--app/views/javascript/actualize.phtml1
-rw-r--r--app/views/javascript/nbUnreadsPerFeed.phtml1
-rw-r--r--app/views/javascript/nonce.phtml1
3 files changed, 3 insertions, 0 deletions
diff --git a/app/views/javascript/actualize.phtml b/app/views/javascript/actualize.phtml
index 1a8af6e49..bce316d85 100644
--- a/app/views/javascript/actualize.phtml
+++ b/app/views/javascript/actualize.phtml
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/** @var FreshRSS_ViewJavascript $this */
$categories = [];
diff --git a/app/views/javascript/nbUnreadsPerFeed.phtml b/app/views/javascript/nbUnreadsPerFeed.phtml
index 4864b429a..f82893f13 100644
--- a/app/views/javascript/nbUnreadsPerFeed.phtml
+++ b/app/views/javascript/nbUnreadsPerFeed.phtml
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/** @var FreshRSS_ViewJavascript $this */
$result = array(
diff --git a/app/views/javascript/nonce.phtml b/app/views/javascript/nonce.phtml
index df1389f15..e7dceb339 100644
--- a/app/views/javascript/nonce.phtml
+++ b/app/views/javascript/nonce.phtml
@@ -1,3 +1,4 @@
<?php
+declare(strict_types=1);
/** @var FreshRSS_ViewJavascript $this */
echo json_encode(array('salt1' => $this->salt1, 'nonce' => $this->nonce));