| Conditions | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testScopeWithObject(): void |
||
| 26 | { |
||
| 27 | $dataObject = new class { |
||
| 28 | public $value = 42; |
||
| 29 | }; |
||
| 30 | |||
| 31 | $dependency = $this->createDependency(static function () use ($dataObject) { |
||
| 32 | return $dataObject->value; |
||
| 33 | }, 42); |
||
| 34 | |||
| 35 | $this->assertDependencyNotChanged($dependency); |
||
| 36 | |||
| 37 | $dataObject->value = 13; |
||
| 38 | |||
| 39 | $this->assertDependencyChanged($dependency); |
||
| 40 | } |
||
| 42 |
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