aboutsummaryrefslogtreecommitdiff
path: root/app/Exceptions
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/Exceptions
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/Exceptions')
-rw-r--r--app/Exceptions/AlreadySubscribedException.php1
-rw-r--r--app/Exceptions/BadUrlException.php1
-rw-r--r--app/Exceptions/ContextException.php2
-rw-r--r--app/Exceptions/DAOException.php1
-rw-r--r--app/Exceptions/EntriesGetterException.php1
-rw-r--r--app/Exceptions/FeedException.php1
-rw-r--r--app/Exceptions/FeedNotAddedException.php1
-rw-r--r--app/Exceptions/ZipException.php1
-rw-r--r--app/Exceptions/ZipMissingException.php1
9 files changed, 5 insertions, 5 deletions
diff --git a/app/Exceptions/AlreadySubscribedException.php b/app/Exceptions/AlreadySubscribedException.php
index 410784451..3802e7d65 100644
--- a/app/Exceptions/AlreadySubscribedException.php
+++ b/app/Exceptions/AlreadySubscribedException.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
class FreshRSS_AlreadySubscribed_Exception extends Exception {
diff --git a/app/Exceptions/BadUrlException.php b/app/Exceptions/BadUrlException.php
index 748a619d6..d308d4791 100644
--- a/app/Exceptions/BadUrlException.php
+++ b/app/Exceptions/BadUrlException.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
class FreshRSS_BadUrl_Exception extends FreshRSS_Feed_Exception {
diff --git a/app/Exceptions/ContextException.php b/app/Exceptions/ContextException.php
index d2d29abc0..5d06baf35 100644
--- a/app/Exceptions/ContextException.php
+++ b/app/Exceptions/ContextException.php
@@ -1,6 +1,6 @@
<?php
-
declare(strict_types=1);
+
/**
* An exception raised when a context is invalid
*/
diff --git a/app/Exceptions/DAOException.php b/app/Exceptions/DAOException.php
index 71ed371f8..3f689f318 100644
--- a/app/Exceptions/DAOException.php
+++ b/app/Exceptions/DAOException.php
@@ -1,5 +1,4 @@
<?php
-
declare(strict_types=1);
class FreshRSS_DAO_Exception extends Exception {
diff --git a/app/Exceptions/EntriesGetterException.php b/app/Exceptions/EntriesGetterException.php
index d145a0ed5..a9f29e034 100644
--- a/app/Exceptions/EntriesGetterException.php
+++ b/app/Exceptions/EntriesGetterException.php
@@ -1,5 +1,4 @@
<?php
-
declare(strict_types=1);
class FreshRSS_EntriesGetter_Exception extends Exception {
diff --git a/app/Exceptions/FeedException.php b/app/Exceptions/FeedException.php
index 49843f3ed..343aca5d6 100644
--- a/app/Exceptions/FeedException.php
+++ b/app/Exceptions/FeedException.php
@@ -1,5 +1,4 @@
<?php
-
declare(strict_types=1);
class FreshRSS_Feed_Exception extends Exception {
diff --git a/app/Exceptions/FeedNotAddedException.php b/app/Exceptions/FeedNotAddedException.php
index 4676c8eb3..921cd985b 100644
--- a/app/Exceptions/FeedNotAddedException.php
+++ b/app/Exceptions/FeedNotAddedException.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
class FreshRSS_FeedNotAdded_Exception extends Exception {
diff --git a/app/Exceptions/ZipException.php b/app/Exceptions/ZipException.php
index d02cc1aea..a0664f913 100644
--- a/app/Exceptions/ZipException.php
+++ b/app/Exceptions/ZipException.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
class FreshRSS_Zip_Exception extends Exception {
diff --git a/app/Exceptions/ZipMissingException.php b/app/Exceptions/ZipMissingException.php
index 5b4791b1b..c33c1bcb8 100644
--- a/app/Exceptions/ZipMissingException.php
+++ b/app/Exceptions/ZipMissingException.php
@@ -1,5 +1,4 @@
<?php
-
declare(strict_types=1);
class FreshRSS_ZipMissing_Exception extends Exception {