]> Raphaël G. Git Repositories - userbundle/blobdiff - RapsysUserBundle.php
Add strict
[userbundle] / RapsysUserBundle.php
index b347c51b66b20dc7dec62804259db5ec535f201e..4f7ec84ecda82bce8248fb797ac769ea45563d28 100644 (file)
@@ -1,4 +1,13 @@
-<?php
+<?php declare(strict_types=1);
+
+/*
+ * This file is part of the Rapsys PackBundle package.
+ *
+ * (c) Raphaël Gertz <symfony@rapsys.eu>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
 
 namespace Rapsys\UserBundle;
 
@@ -11,7 +20,7 @@ class RapsysUserBundle extends Bundle {
         *
         * @return string The bundle alias
         */
-    public function getAlias(): string {
+    public static function getAlias(): string {
                //With namespace
                if ($npos = strrpos(static::class, '\\')) {
                        //Set name pos