diff options
| author | 2023-11-16 22:43:00 +0100 | |
|---|---|---|
| committer | 2023-11-16 22:43:00 +0100 | |
| commit | 30c7a61a9b410f023c56ef19b9389a61647d8768 (patch) | |
| tree | bb58408980ce5b86f1d2b4a9be29d55b2d46dbb1 /tests/lib | |
| parent | ee99e7e2cc228500efc1b539954c0ca6cd4c146d (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 'tests/lib')
| -rw-r--r-- | tests/lib/CssXPath/CssXPathTest.php | 1 | ||||
| -rw-r--r-- | tests/lib/Minz/MigratorTest.php | 2 | ||||
| -rw-r--r-- | tests/lib/PHPMailer/PHPMailerTest.php | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/CssXPath/CssXPathTest.php b/tests/lib/CssXPath/CssXPathTest.php index 1cfbcf58f..ed92ece16 100644 --- a/tests/lib/CssXPath/CssXPathTest.php +++ b/tests/lib/CssXPath/CssXPathTest.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); class CssXPathTest extends PHPUnit\Framework\TestCase { diff --git a/tests/lib/Minz/MigratorTest.php b/tests/lib/Minz/MigratorTest.php index 1803e6e86..5d090b2fa 100644 --- a/tests/lib/Minz/MigratorTest.php +++ b/tests/lib/Minz/MigratorTest.php @@ -1,5 +1,5 @@ <?php - +declare(strict_types=1); use PHPUnit\Framework\TestCase; class MigratorTest extends TestCase diff --git a/tests/lib/PHPMailer/PHPMailerTest.php b/tests/lib/PHPMailer/PHPMailerTest.php index 5873c58a9..021337a3b 100644 --- a/tests/lib/PHPMailer/PHPMailerTest.php +++ b/tests/lib/PHPMailer/PHPMailerTest.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); class PHPMailerTest extends PHPUnit\Framework\TestCase { |
