@@ -11,7 +11,7 @@ class ExcelError
1111 /**
1212 * List of error codes.
1313 *
14- * @var array
14+ * @var array<string, string>
1515 */
1616 public static $ errorCodes = [
1717 'null ' => '#NULL! ' ,
@@ -60,7 +60,7 @@ public static function type($value = '')
6060 *
6161 * @return string #NULL!
6262 */
63- public static function null ()
63+ public static function null (): string
6464 {
6565 return self ::$ errorCodes ['null ' ];
6666 }
@@ -72,7 +72,7 @@ public static function null()
7272 *
7373 * @return string #NUM!
7474 */
75- public static function NAN ()
75+ public static function NAN (): string
7676 {
7777 return self ::$ errorCodes ['num ' ];
7878 }
@@ -84,7 +84,7 @@ public static function NAN()
8484 *
8585 * @return string #REF!
8686 */
87- public static function REF ()
87+ public static function REF (): string
8888 {
8989 return self ::$ errorCodes ['reference ' ];
9090 }
@@ -100,7 +100,7 @@ public static function REF()
100100 *
101101 * @return string #N/A!
102102 */
103- public static function NA ()
103+ public static function NA (): string
104104 {
105105 return self ::$ errorCodes ['na ' ];
106106 }
@@ -112,7 +112,7 @@ public static function NA()
112112 *
113113 * @return string #VALUE!
114114 */
115- public static function VALUE ()
115+ public static function VALUE (): string
116116 {
117117 return self ::$ errorCodes ['value ' ];
118118 }
@@ -124,7 +124,7 @@ public static function VALUE()
124124 *
125125 * @return string #NAME?
126126 */
127- public static function NAME ()
127+ public static function NAME (): string
128128 {
129129 return self ::$ errorCodes ['name ' ];
130130 }
@@ -134,17 +134,17 @@ public static function NAME()
134134 *
135135 * @return string #DIV/0!
136136 */
137- public static function DIV0 ()
137+ public static function DIV0 (): string
138138 {
139139 return self ::$ errorCodes ['divisionbyzero ' ];
140140 }
141141
142142 /**
143143 * CALC.
144144 *
145- * @return string #Not Yet Implemented
145+ * @return string #CALC!
146146 */
147- public static function CALC ()
147+ public static function CALC (): string
148148 {
149149 return '#CALC! ' ;
150150 }
0 commit comments