diff options
| author | 2024-07-09 15:57:26 +0200 | |
|---|---|---|
| committer | 2024-07-09 15:57:26 +0200 | |
| commit | 0f395dad43bb0ab7c2e7ac5751776e9aeeb42036 (patch) | |
| tree | 273a62050a1aca5125d607b7add9674a86cf3b85 /tests/app | |
| parent | d56d791bafa5cdbe23067d01b92cd690e7ccb6cf (diff) | |
Initial support for PHP 8.4 (#6615)
* Initial support for PHP 8.4
Sole fix needed so far seems to be related to https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
See also upstream PR https://github.com/PhpGt/CssXPath/pull/227
We are also hitting was seems to be a PHP bug https://github.com/php/php-src/issues/14873
* Fix return type
* Disable OPCache while waiting for PHP fix
Diffstat (limited to 'tests/app')
| -rw-r--r-- | tests/app/Models/FeedDAOTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/app/Models/FeedDAOTest.php b/tests/app/Models/FeedDAOTest.php new file mode 100644 index 000000000..e69b7c392 --- /dev/null +++ b/tests/app/Models/FeedDAOTest.php @@ -0,0 +1,11 @@ +<?php +declare(strict_types=1); + +class FeedDAOTest extends PHPUnit\Framework\TestCase { + function test_ttl_min(): void { + $feed = new FreshRSS_Feed('https://example.net/', false); + $feed->_ttl(-5); + self::assertEquals(-5, $feed->ttl(true)); + self::assertEquals(true, $feed->mute()); + } +} |
