Skip to content

Commit

Permalink
refact(*): Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenMl authored and bastien-phi committed Nov 24, 2023
1 parent 4b4b049 commit fbd7c08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
parameters:
ignoreErrors:
-
message: "#^Cannot call method getKeyName\\(\\) on Illuminate\\\\Database\\\\Eloquent\\\\Model\\|null\\.$#"
count: 2
path: src/Mixins/CollectionMixin.php

-
message: "#^Cannot call method newModelQuery\\(\\) on Illuminate\\\\Database\\\\Eloquent\\\\Model\\|null\\.$#"
count: 1
path: src/Mixins/CollectionMixin.php

-
message: "#^PHPDoc tag @mixin contains generic class Illuminate\\\\Database\\\\Eloquent\\\\Collection but does not specify its types\\: TKey, TModel$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion src/Mixins/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function random(): Closure
return null;
}

return $this->offset(mt_rand(0, $total - 1))->first();
return $this->offset(random_int(0, $total - 1))->first();
};
}
}

0 comments on commit fbd7c08

Please sign in to comment.