Skip to content

Commit e96a185

Browse files
author
Pantea Marius-ciclistu
committed
in_array strinct
1 parent 2c6d926 commit e96a185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

illuminate/Database/Eloquent/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,11 +2356,11 @@ public function __call($method, $parameters)
23562356
{
23572357
$lowerMethod = \strtolower($method);
23582358

2359-
if (\in_array($lowerMethod, ['increment', 'decrement', 'incrementquietly', 'decrementquietly'])) {
2359+
if (\in_array($lowerMethod, ['increment', 'decrement', 'incrementquietly', 'decrementquietly'], true)) {
23602360
return $this->$method(...$parameters);
23612361
}
23622362

2363-
if (\in_array($lowerMethod, ['incrementeach', 'decrementeach'])) {
2363+
if (\in_array($lowerMethod, ['incrementeach', 'decrementeach'], true)) {
23642364
/** \MacropaySolutions\MaravelRestWizard\Models\BaseModel::incrementBulk can be used instead */
23652365
throw new \BadMethodCallException(\sprintf(
23662366
'Call to unscoped method %s::%s(). Use $model->newQuery()->getQuery()->%s()' .

0 commit comments

Comments
 (0)