Skip to content

Commit ef704b8

Browse files
committed
Add typed class properties
1 parent bbf774d commit ef704b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+98
-98
lines changed

src/Events/DatasetInferred.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DatasetInferred implements Event
1818
*
1919
* @var \Rubix\ML\Datasets\Dataset
2020
*/
21-
protected $dataset;
21+
protected \Rubix\ML\Datasets\Dataset $dataset;
2222

2323
/**
2424
* @param \Rubix\ML\Datasets\Dataset $dataset

src/Events/Failure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ abstract class Failure implements Event
1818
*
1919
* @var \Exception
2020
*/
21-
protected $exception;
21+
protected \Exception $exception;
2222

2323
/**
2424
* @param \Exception $exception

src/Events/MemoryUsageUpdated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MemoryUsageUpdated implements Event
1818
*
1919
* @var \Rubix\Server\Models\Memory
2020
*/
21-
protected $memory;
21+
protected \Rubix\Server\Models\Memory $memory;
2222

2323
/**
2424
* @param \Rubix\Server\Models\Memory $memory

src/Events/RequestReceived.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RequestReceived implements Event
1818
*
1919
* @var \Psr\Http\Message\ServerRequestInterface
2020
*/
21-
protected $request;
21+
protected \Psr\Http\Message\ServerRequestInterface $request;
2222

2323
/**
2424
* @param \Psr\Http\Message\ServerRequestInterface $request

src/Events/ResponseSent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ResponseSent implements Event
1818
*
1919
* @var \Psr\Http\Message\ResponseInterface
2020
*/
21-
protected $response;
21+
protected \Psr\Http\Message\ResponseInterface $response;
2222

2323
/**
2424
* @param \Psr\Http\Message\ResponseInterface $response

src/GraphQL/Enums/DataTypeEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DataTypeEnum extends EnumType
1111
*
1212
* @var self|null
1313
*/
14-
protected static $instance;
14+
protected static ?self $instance = null;
1515

1616
/**
1717
* @return self

src/GraphQL/Enums/EstimatorTypeEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class EstimatorTypeEnum extends EnumType
1111
*
1212
* @var self|null
1313
*/
14-
protected static $instance;
14+
protected static ?self $instance = null;
1515

1616
/**
1717
* @return self

src/GraphQL/InputObjects/DatasetInputObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DatasetInputObject extends InputObjectType
1212
*
1313
* @var self|null
1414
*/
15-
protected static $instance;
15+
protected static ?self $instance = null;
1616

1717
/**
1818
* @return self

src/GraphQL/Objects/EstimatorInterfacesObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class EstimatorInterfacesObject extends ObjectType
1212
*
1313
* @var self|null
1414
*/
15-
protected static $instance;
15+
protected static ?self $instance = null;
1616

1717
/**
1818
* @return self

src/GraphQL/Objects/HTTPStatsObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class HTTPStatsObject extends ObjectType
1212
*
1313
* @var self|null
1414
*/
15-
protected static $instance;
15+
protected static ?self $instance = null;
1616

1717
/**
1818
* @return self

0 commit comments

Comments
 (0)