Skip to content

Commit 3eaa314

Browse files
committed
PHPC-2140: Make tentative return types definitive
1 parent dd89082 commit 3eaa314

Some content is hidden

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

50 files changed

+73
-138
lines changed

src/BSON/BinaryInterface.stub.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99

1010
interface BinaryInterface
1111
{
12-
/** @tentative-return-type */
1312
public function getData(): string;
1413

15-
/** @tentative-return-type */
1614
public function getType(): int;
1715

1816
public function __toString(): string;

src/BSON/BinaryInterface_arginfo.h

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/Decimal128Interface.stub.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99

1010
interface Decimal128Interface
1111
{
12-
/** @tentative-return-type */
1312
public function __toString(): string;
1413
}

src/BSON/Decimal128Interface_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/JavascriptInterface.stub.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@
99

1010
interface JavascriptInterface
1111
{
12-
/** @tentative-return-type */
1312
public function getCode(): string;
1413

15-
/** @tentative-return-type */
1614
public function getScope(): ?object;
1715

18-
/** @tentative-return-type */
1916
public function __toString(): string;
2017
}

src/BSON/JavascriptInterface_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/ObjectIdInterface.stub.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
interface ObjectIdInterface
1111
{
12-
/** @tentative-return-type */
1312
public function getTimestamp(): int;
1413

15-
/** @tentative-return-type */
1614
public function __toString(): string;
1715
}

src/BSON/ObjectIdInterface_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/Persistable.stub.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99

1010
interface Persistable extends Serializable, Unserializable
1111
{
12-
/** @tentative-return-type */
1312
public function bsonSerialize(): array|\stdClass|Document;
1413
}

src/BSON/Persistable_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/RegexInterface.stub.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@
99

1010
interface RegexInterface
1111
{
12-
/** @tentative-return-type */
1312
public function getPattern(): string;
1413

15-
/** @tentative-return-type */
1614
public function getFlags(): string;
1715

18-
/** @tentative-return-type */
1916
public function __toString(): string;
2017
}

src/BSON/RegexInterface_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/Serializable.stub.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99

1010
interface Serializable extends Type
1111
{
12-
/** @tentative-return-type */
1312
public function bsonSerialize(): array|\stdClass|Document|PackedArray;
1413
}

src/BSON/Serializable_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/TimestampInterface.stub.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@
99

1010
interface TimestampInterface
1111
{
12-
/** @tentative-return-type */
1312
public function getTimestamp(): int;
1413

15-
/** @tentative-return-type */
1614
public function getIncrement(): int;
1715

18-
/** @tentative-return-type */
1916
public function __toString(): string;
2017
}

src/BSON/TimestampInterface_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/UTCDateTimeInterface.stub.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
interface UTCDateTimeInterface
1111
{
12-
/** @tentative-return-type */
1312
public function toDateTime(): \DateTime;
1413

15-
/** @tentative-return-type */
1614
public function __toString(): string;
1715
}

src/BSON/UTCDateTimeInterface_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BSON/Unserializable.stub.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99

1010
interface Unserializable
1111
{
12-
/** @tentative-return-type */
1312
public function bsonUnserialize(array $data): void;
1413
}

src/BSON/Unserializable_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MongoDB/Cursor.stub.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ final private function __construct() {}
1414

1515
public function current(): array|object|null {}
1616

17-
/** @tentative-return-type */
1817
final public function getId(bool $asInt64 = false): CursorId|\MongoDB\BSON\Int64 {}
1918

2019
final public function getServer(): Server {}

src/MongoDB/CursorInterface.stub.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,13 @@
99

1010
interface CursorInterface extends \Iterator
1111
{
12-
/** @tentative-return-type */
1312
public function getId(): CursorId|\MongoDB\BSON\Int64;
1413

15-
/** @tentative-return-type */
1614
public function getServer(): Server;
1715

18-
/** @tentative-return-type */
1916
public function isDead(): bool;
2017

21-
/** @tentative-return-type */
2218
public function setTypeMap(array $typemap): void;
2319

24-
/** @tentative-return-type */
2520
public function toArray(): array;
2621
}

src/MongoDB/CursorInterface_arginfo.h

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MongoDB/Cursor_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MongoDB/Monitoring/CommandSubscriber.stub.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@
99

1010
interface CommandSubscriber extends Subscriber
1111
{
12-
/** @tentative-return-type */
1312
public function commandStarted(CommandStartedEvent $event): void;
1413

15-
/** @tentative-return-type */
1614
public function commandSucceeded(CommandSucceededEvent $event): void;
1715

18-
/** @tentative-return-type */
1916
public function commandFailed(CommandFailedEvent $event): void;
2017
}

src/MongoDB/Monitoring/CommandSubscriber_arginfo.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MongoDB/Monitoring/SDAMSubscriber.stub.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,21 @@
99

1010
interface SDAMSubscriber extends Subscriber
1111
{
12-
/** @tentative-return-type */
1312
public function serverChanged(ServerChangedEvent $event): void;
1413

15-
/** @tentative-return-type */
1614
public function serverClosed(ServerClosedEvent $event): void;
1715

18-
/** @tentative-return-type */
1916
public function serverOpening(ServerOpeningEvent $event): void;
2017

21-
/** @tentative-return-type */
2218
public function serverHeartbeatFailed(ServerHeartbeatFailedEvent $event): void;
2319

24-
/** @tentative-return-type */
2520
public function serverHeartbeatStarted(ServerHeartbeatStartedEvent $event): void;
2621

27-
/** @tentative-return-type */
2822
public function serverHeartbeatSucceeded(ServerHeartbeatSucceededEvent $event): void;
2923

30-
/** @tentative-return-type */
3124
public function topologyChanged(TopologyChangedEvent $event): void;
3225

33-
/** @tentative-return-type */
3426
public function topologyClosed(TopologyClosedEvent $event): void;
3527

36-
/** @tentative-return-type */
3728
public function topologyOpening(TopologyOpeningEvent $event): void;
3829
}

0 commit comments

Comments
 (0)