Skip to content

Commit 0feda58

Browse files
ChristophWurstbackportbot[bot]
authored andcommitted
fix(php): suppress notice of JsonSerializable::jsonSerialize
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> [skip ci]
1 parent 658c6e5 commit 0feda58

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

lib/Db/Model.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use JsonSerializable;
1313
use OCP\AppFramework\Db\Entity;
14+
use ReturnTypeWillChange;
1415

1516
/**
1617
* @method string getType()
@@ -64,6 +65,7 @@ class Model extends Entity implements JsonSerializable {
6465
protected $createdAt;
6566
protected $addressType;
6667

68+
#[ReturnTypeWillChange]
6769
public function jsonSerialize(): array {
6870
return [
6971
'type' => $this->type,

lib/Service/Statistics/AppStatistics.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use JsonSerializable;
1717
use OCA\SuspiciousLogin\Db\Model;
1818
use OCA\SuspiciousLogin\Service\TrainingDataConfig;
19+
use ReturnTypeWillChange;
1920

2021
class AppStatistics implements JsonSerializable {
2122

lib/Service/Statistics/TrainingDataStatistics.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace OCA\SuspiciousLogin\Service\Statistics;
1111

1212
use JsonSerializable;
13+
use ReturnTypeWillChange;
1314

1415
class TrainingDataStatistics implements JsonSerializable {
1516

lib/Service/TrainingDataConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace OCA\SuspiciousLogin\Service;
1111

1212
use JsonSerializable;
13+
use ReturnTypeWillChange;
1314
use function time;
1415

1516
class TrainingDataConfig implements JsonSerializable {

0 commit comments

Comments
 (0)