mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Move to PHPStan level 4
This commit is contained in:
parent
31e1be4191
commit
b4483023e6
22 changed files with 116 additions and 104 deletions
|
@ -13,7 +13,7 @@ class UtilsTest extends TestCase
|
|||
*/
|
||||
public function testCorrectWordsCountForDifferentLanguages($filename, $text, $expectedCount)
|
||||
{
|
||||
static::assertSame((float) $expectedCount, Utils::getReadingTime($text), 'Reading time for: ' . $filename);
|
||||
static::assertSame($expectedCount, Utils::getReadingTime($text), 'Reading time for: ' . $filename);
|
||||
}
|
||||
|
||||
public function examples()
|
||||
|
@ -30,7 +30,7 @@ class UtilsTest extends TestCase
|
|||
$examples[] = [
|
||||
$file->getRelativePathname(),
|
||||
$match[1], // content
|
||||
$match[2], // reading time
|
||||
(int) $match[2], // reading time
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue