@@ -41,11 +41,11 @@ class TagManager extends Plugin
4141 // Properties
4242 // =========================================================================
4343
44- public $ schemaVersion = '1.0.0 ' ;
44+ public string $ schemaVersion = '1.0.0 ' ;
4545
46- public $ hasCpSettings = true ;
46+ public bool $ hasCpSettings = true ;
4747
48- public $ hasCpSection = true ;
48+ public bool $ hasCpSection = true ;
4949
5050 // Init
5151 // =========================================================================
@@ -88,7 +88,7 @@ public function init ()
8888 // Craft
8989 // =========================================================================
9090
91- public function getCpNavItem ()
91+ public function getCpNavItem (): ? array
9292 {
9393 $ item = parent ::getCpNavItem ();
9494
@@ -106,7 +106,7 @@ protected function createSettingsModel (): Settings
106106 /**
107107 * @return bool|Model|null
108108 */
109- public function getSettings ()
109+ public function getSettings (): ? Model
110110 {
111111 return parent ::getSettings ();
112112 }
@@ -117,7 +117,7 @@ public function getSettings ()
117117 * @throws RuntimeError
118118 * @throws SyntaxError|Exception
119119 */
120- protected function settingsHtml ()
120+ protected function settingsHtml (): ? string
121121 {
122122 return Craft::$ app ->getView ()->renderTemplate ('tag-manager/_settings ' , [
123123 'settings ' => $ this ->getSettings (),
0 commit comments