Skip to content

Commit b70876a

Browse files
committed
add boolean
1 parent 31782ac commit b70876a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function isFillable($key)
163163
*/
164164
public function isGuarded($key)
165165
{
166-
if (strpos($key, '->')) {
166+
if (strpos($key, '->') !== false) {
167167
$key = Str::before($key, '->');
168168
}
169169

0 commit comments

Comments
 (0)