   (add-hook 'php-mode-hook 'eldoc-mode)
   (when (configuration-layer/package-usedp 'ggtags)
     (spacemacs/ggtags-enable-eldoc 'php-mode)))
+
+(defun php/post-init-flycheck ()
+  (add-hook 'php-mode-hook 'flycheck-mode))
 
 (defun php/post-init-ggtags ()
   (add-hook 'php-mode-hook 'ggtags-mode))

        php-mode
        phpcbf
        phpunit
        flycheck
        ))

(defun php/init-drupal-mode ()
  (use-package drupal-mode

        company
        drupal-mode
        eldoc
        flycheck
        ggtags
        helm-gtags
        php-auto-yasnippets
