File tree 4 files changed +16
-1
lines changed
4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
9
9
## Fixed
10
10
Cant restore snapshot from VM
11
11
12
+ ## Dev
13
+ Add some dynamic properties and return types to satisfy phpstan
14
+
12
15
# [ 0.23.0]
13
16
14
17
## Changed
Original file line number Diff line number Diff line change 4
4
5
5
use Opensaucesystems \Lxd \Exception \InvalidEndpointException ;
6
6
7
+ /**
8
+ * @property-read \Opensaucesystems\Lxd\Endpoint\Images\Aliases $aliases
9
+ */
7
10
class Images extends AbstractEndpoint
8
11
{
9
12
protected function getEndpoint ()
@@ -44,7 +47,7 @@ public function all(int $recursion = 0)
44
47
* @param string $secret Secret to access private image by untrusted client
45
48
* @return object
46
49
*/
47
- public function info ($ fingerprint , $ secret = null )
50
+ public function info ($ fingerprint , $ secret = null ) : array
48
51
{
49
52
$ endpoint = $ this ->getEndpoint ().$ fingerprint ;
50
53
if (!empty ($ secret )) {
Original file line number Diff line number Diff line change 7
7
use Opensaucesystems \Lxd \Exception \SourceImageException ;
8
8
use Opensaucesystems \Lxd \Exception \InvalidEndpointException ;
9
9
10
+ /**
11
+ * @property-read \Opensaucesystems\Lxd\Endpoint\Instance\Snapshots $snapshots
12
+ * @property-read \Opensaucesystems\Lxd\Endpoint\Instance\Files $files
13
+ * @property-read \Opensaucesystems\Lxd\Endpoint\Instance\Logs $logs
14
+ * @property-read \Opensaucesystems\Lxd\Endpoint\Instance\Backups $backups
15
+ */
10
16
abstract class InstaceBase extends AbstractEndpoint
11
17
{
12
18
/**
Original file line number Diff line number Diff line change 4
4
5
5
use Opensaucesystems \Lxd \Exception \InvalidEndpointException ;
6
6
7
+ /**
8
+ * @property-read \Opensaucesystems\Lxd\Endpoint\Warnings\Status $status
9
+ */
7
10
class Warnings extends AbstractEndpoint
8
11
{
9
12
protected function getEndpoint ()
You can’t perform that action at this time.
0 commit comments