File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -93,18 +93,18 @@ class Server extends Model implements Resource
93
93
public $ iso ;
94
94
95
95
/**
96
- * @var bool
96
+ * @var ? bool
97
97
*/
98
98
public $ rescue_enabled ;
99
99
/**
100
- * @var bool
100
+ * @var ? bool
101
101
*
102
102
* @deprecated Use $rescue_enabled instead
103
103
*/
104
104
public $ rescueEnabled ;
105
105
106
106
/**
107
- * @var bool
107
+ * @var ? bool
108
108
*/
109
109
public $ locked ;
110
110
@@ -206,9 +206,9 @@ public function setAdditionalData($data)
206
206
$ this ->created = $ data ->created ;
207
207
$ this ->image = $ data ->image ?: Image::parse ($ data ->image );
208
208
$ this ->iso = $ data ->iso ?: ISO ::parse ($ data ->iso );
209
- $ this ->rescue_enabled = $ data ->rescue_enabled ?: null ;
210
- $ this ->rescueEnabled = $ data ->rescue_enabled ?: null ;
211
- $ this ->locked = $ data ->locked ?: null ;
209
+ $ this ->rescue_enabled = $ data ->rescue_enabled ?? null ;
210
+ $ this ->rescueEnabled = $ data ->rescue_enabled ?? null ;
211
+ $ this ->locked = $ data ->locked ?? null ;
212
212
$ this ->backup_window = $ data ->backup_window ?: null ;
213
213
$ this ->backupWindow = $ data ->backup_window ?: null ;
214
214
$ this ->outgoing_traffic = $ data ->outgoing_traffic ?: null ;
You can’t perform that action at this time.
0 commit comments