@@ -55,7 +55,7 @@ class DeploymentConfig
55
55
* @param DeploymentConfig\Reader $reader
56
56
* @param array $overrideData
57
57
*/
58
- public function __construct (DeploymentConfig \Reader $ reader , array $ overrideData = [])
58
+ public function __construct (DeploymentConfig \Reader $ reader , $ overrideData = [])
59
59
{
60
60
$ this ->reader = $ reader ;
61
61
$ this ->overrideData = $ overrideData ;
@@ -64,13 +64,13 @@ public function __construct(DeploymentConfig\Reader $reader, array $overrideData
64
64
/**
65
65
* Gets data from flattened data
66
66
*
67
- * @param string|null $key
67
+ * @param string $key
68
68
* @param mixed $defaultValue
69
69
* @return mixed|null
70
70
* @throws FileSystemException
71
71
* @throws RuntimeException
72
72
*/
73
- public function get (string $ key = null , $ defaultValue = null )
73
+ public function get ($ key = null , $ defaultValue = null )
74
74
{
75
75
if ($ key === null ) {
76
76
if (empty ($ this ->flatData )) {
@@ -94,7 +94,7 @@ public function get(string $key = null, $defaultValue = null)
94
94
* @throws FileSystemException
95
95
* @throws RuntimeException
96
96
*/
97
- public function getConfigData (string $ key = null )
97
+ public function getConfigData ($ key = null )
98
98
{
99
99
if ($ key === null ) {
100
100
if (empty ($ this ->data )) {
@@ -117,7 +117,7 @@ public function getConfigData(string $key = null)
117
117
* @throws FileSystemException
118
118
* @throws RuntimeException
119
119
*/
120
- public function isAvailable (): bool
120
+ public function isAvailable ()
121
121
{
122
122
return $ this ->get (ConfigOptionsListConstants::CONFIG_PATH_INSTALL_DATE ) !== null ;
123
123
}
@@ -130,7 +130,7 @@ public function isAvailable(): bool
130
130
* @throws RuntimeException
131
131
* @since 100.1.3
132
132
*/
133
- public function isDbAvailable (): bool
133
+ public function isDbAvailable ()
134
134
{
135
135
return $ this ->getConfigData ('db ' ) !== null ;
136
136
}
@@ -140,7 +140,7 @@ public function isDbAvailable(): bool
140
140
*
141
141
* @return void
142
142
*/
143
- public function resetData (): void
143
+ public function resetData ()
144
144
{
145
145
$ this ->data = [];
146
146
$ this ->flatData = [];
0 commit comments