Skip to content

Commit e6e08b3

Browse files
committed
Add comment about using declare
1 parent 68d68e3 commit e6e08b3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/Model/ChangeStreamIteratorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
22

3+
/* Enable strict types to disable type coercion for arguments. Without this, the
4+
* non-int test values 3.14 and true would be silently coerced to integers,
5+
* which is not what we're expecting to test here. */
36
declare(strict_types=1);
47

58
namespace MongoDB\Tests\Model;

tests/Operation/DeleteTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
22

3+
/* Enable strict types to disable type coercion for arguments. Without this, the
4+
* non-int test values 3.14 and true would be silently coerced to integers,
5+
* which is not what we're expecting to test here. */
36
declare(strict_types=1);
47

58
namespace MongoDB\Tests\Operation;

0 commit comments

Comments
 (0)