Enable PHPStan

- Fix error for level 0 & 1 (level 7 has 699 errors...)
- Add `updated_at` to site_credential (so the `timestamps()` method applies correctly)
This commit is contained in:
Jeremy Benoist
2019-01-17 14:28:05 +01:00
parent 8445ad4790
commit 1e0d8ad7b7
27 changed files with 118 additions and 43 deletions

View File

@ -121,7 +121,7 @@ class ChromeControllerTest extends WallabagCoreTestCase
$this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
$this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for http://www.usinenouvelle.com is ok');
$this->assertNotEmpty($content->getLanguage(), 'Language for http://www.usinenouvelle.com is ok');
$this->assertSame(1, \count($content->getTags()));
$this->assertCount(1, $content->getTags());
$createdAt = $content->getCreatedAt();
$this->assertSame('2011', $createdAt->format('Y'));