Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | final public static function fromString(string $value) |
||
32 | { |
||
33 | try { |
||
34 | new ObjectId($value); |
||
35 | } catch (InvalidArgumentException $exception) { |
||
|
|||
36 | throw new InvalidIdentityException( |
||
37 | \sprintf('Provided identity value "%s" is not a valid Mongo ObjectId', $value), |
||
38 | 0, |
||
39 | $exception |
||
40 | ); |
||
41 | } |
||
42 | |||
43 | return new static($value); |
||
44 | } |
||
45 | } |
||
46 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.