@@ -40,15 +40,15 @@ public function __construct(array $columns)
4040 /**
4141 * {@inheritdoc}
4242 */
43- public function offsetExists ($ offset )
43+ public function offsetExists ($ offset ): bool
4444 {
4545 return array_key_exists ($ offset , $ this ->columns );
4646 }
4747
4848 /**
4949 * {@inheritdoc}
5050 */
51- public function offsetGet ($ offset )
51+ public function offsetGet ($ offset ): mixed
5252 {
5353 if ($ this ->offsetExists ($ offset ) === false ) {
5454 throw new \InvalidArgumentException (sprintf ('%s column not available ' , $ offset ));
@@ -60,7 +60,7 @@ public function offsetGet($offset)
6060 /**
6161 * {@inheritdoc}
6262 */
63- public function offsetSet ($ offset , $ value )
63+ public function offsetSet ($ offset , $ value ): void
6464 {
6565 if ($ this ->offsetExists ($ offset ) === false ) {
6666 $ this ->columns [$ offset ] = $ value ;
@@ -70,7 +70,7 @@ public function offsetSet($offset, $value)
7070 /**
7171 * {@inheritdoc}
7272 */
73- public function offsetUnset ($ offset )
73+ public function offsetUnset ($ offset ): void
7474 {
7575 if ($ this ->offsetExists ($ offset ) === false ) {
7676 unset($ this ->columns [$ offset ]);
@@ -80,47 +80,47 @@ public function offsetUnset($offset)
8080 /**
8181 * {@inheritdoc}
8282 */
83- public function rewind ()
83+ public function rewind (): void
8484 {
8585 $ this ->position = 0 ;
8686 }
8787
8888 /**
8989 * {@inheritdoc}
9090 */
91- public function current ()
91+ public function current (): mixed
9292 {
9393 return $ this ->columns [$ this ->position ];
9494 }
9595
9696 /**
9797 * {@inheritdoc}
9898 */
99- public function key ()
99+ public function key (): mixed
100100 {
101101 return $ this ->position ;
102102 }
103103
104104 /**
105105 * {@inheritdoc}
106106 */
107- public function next ()
107+ public function next (): void
108108 {
109109 ++$ this ->position ;
110110 }
111111
112112 /**
113113 * {@inheritdoc}
114114 */
115- public function valid ()
115+ public function valid (): bool
116116 {
117117 return array_key_exists ($ this ->position , $ this ->columns );
118118 }
119119
120120 /**
121121 * @return array
122122 */
123- public function getSearchableFields ()
123+ public function getSearchableFields (): array
124124 {
125125 $ searchable = array ();
126126
0 commit comments