Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function testDanglingPointers(): void |
||
25 | { |
||
26 | if (!\class_exists(\WeakReference::class)) { |
||
27 | $this->markTestSkipped('PHP 7.4+ only'); |
||
28 | return; |
||
29 | } |
||
30 | $objectStorage = new NativeWeakrefObjectStorage(); |
||
31 | $dbRow = $this->createMock(DbRow::class); |
||
32 | |||
33 | for ($i=0; $i<10001; $i++) { |
||
34 | $objectStorage->set('foo', $i, clone $dbRow); |
||
35 | } |
||
36 | $this->assertNull($objectStorage->get('foo', 42)); |
||
37 | } |
||
39 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths