diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-01-18 15:56:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 15:56:39 +0100 |
commit | 6bfbf16eeb0004fcac6d2d2507e3d7d8b4dc3c1f (patch) | |
tree | b4f38bf4a01580f5f7218440e7054688d7178e53 /src/Wallabag/CoreBundle/Command | |
parent | 8445ad4790ff4f3f9759f9bfa0d503ad5654e30e (diff) | |
parent | 1e0d8ad7b728f6fb2cd886526b0fb84ef803e84f (diff) | |
download | wallabag-6bfbf16eeb0004fcac6d2d2507e3d7d8b4dc3c1f.tar.gz wallabag-6bfbf16eeb0004fcac6d2d2507e3d7d8b4dc3c1f.tar.zst wallabag-6bfbf16eeb0004fcac6d2d2507e3d7d8b4dc3c1f.zip |
Merge pull request #3859 from wallabag/phpstan
Enable PHPStan
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') |