diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-01-17 14:28:05 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-01-18 15:25:50 +0100 |
commit | 1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f (patch) | |
tree | b4f38bf4a01580f5f7218440e7054688d7178e53 /src/Wallabag/CoreBundle/Command | |
parent | 8445ad4790ff4f3f9759f9bfa0d503ad5654e30e (diff) | |
download | wallabag-1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f.tar.gz wallabag-1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f.tar.zst wallabag-1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f.zip |
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)
Diffstat (limited to 'src/Wallabag/CoreBundle/Command')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/InstallCommand.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index 3c76545c..49c84178 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php | |||
@@ -94,8 +94,9 @@ class InstallCommand extends ContainerAwareCommand | |||
94 | $status = '<info>OK!</info>'; | 94 | $status = '<info>OK!</info>'; |
95 | $help = ''; | 95 | $help = ''; |
96 | 96 | ||
97 | $conn = $this->getContainer()->get('doctrine')->getManager()->getConnection(); | ||
98 | |||
97 | try { | 99 | try { |
98 | $conn = $this->getContainer()->get('doctrine')->getManager()->getConnection(); | ||
99 | $conn->connect(); | 100 | $conn->connect(); |
100 | } catch (\Exception $e) { | 101 | } catch (\Exception $e) { |
101 | if (false === strpos($e->getMessage(), 'Unknown database') | 102 | if (false === strpos($e->getMessage(), 'Unknown database') |