Skip to content

Commit 84565cc

Browse files
authored
check if method exists before forwarding call (#54833)
1 parent f5e57f0 commit 84565cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Illuminate/Hashing/HashManager.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ public function getDefaultDriver()
119119
*/
120120
public function verifyConfiguration($value)
121121
{
122-
return $this->driver()->verifyConfiguration($value);
122+
if (method_exists($driver = $this->driver(), 'verifyConfiguration')) {
123+
return $driver->verifyConfiguration($value);
124+
}
125+
126+
return true;
123127
}
124128
}

0 commit comments

Comments
 (0)